Opened 10 years ago
Closed 10 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.6 |
| Component: | Extended Profile | Version: | |
| Severity: | normal | 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
@
10 years ago
- Component API → Component - XProfile
- Keywords needs-patch needs-unit-tests added
- Milestone Awaiting Review → 2.6
- Owner set to
- Status new → assigned
This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.
10 years ago
This ticket was mentioned in Slack in #buddypress by jjj. View the logs.
10 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed.
We do clean other caches in
bp-xprofile-cache.phpbut the core user objects are missed.Plausible there's more tuning required, as many of our cache busting actions are hooked at priority
10with other functions that are also hooked at10, but maybe too-soon or too-late depending on the context.