Opened 8 years ago
Closed 8 years ago
#7050 closed defect (bug) (fixed)
Need to clear user cache after running direct query to update user displayname
Reported by: | prettyboymp | Owned by: | johnjamesjacoby |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Extended Profile | Keywords: | needs-patch needs-unit-tests |
Cc: |
Description
The xprofile_sync_wp_profile()
function runs a direct query to update the user's display name. clean_user_cache($user_id)
needs to be called after that query or the change will never show if object cache is being used.
Change History (5)
#1
@
8 years ago
- Component changed from API to Component - XProfile
- Keywords needs-patch needs-unit-tests added
- Milestone changed from Awaiting Review to 2.6
- Owner set to johnjamesjacoby
- Status changed from new to assigned
This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.
8 years ago
This ticket was mentioned in Slack in #buddypress by jjj. View the logs.
8 years ago
Note: See
TracTickets for help on using
tickets.
Confirmed.
We do clean other caches in
bp-xprofile-cache.php
but the core user objects are missed.Plausible there's more tuning required, as many of our cache busting actions are hooked at priority
10
with other functions that are also hooked at10
, but maybe too-soon or too-late depending on the context.