[buddypress-trac] [BuddyPress Trac] #7050: Need to clear user cache after running direct query to update user displayname

buddypress-trac noreply at wordpress.org
Thu May 5 18:22:21 UTC 2016


#7050: Need to clear user cache after running direct query to update user
displayname
--------------------------+-----------------------------
 Reporter:  prettyboymp   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  API           |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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.

 Ref:
 https://github.com/buddypress/BuddyPress/blob/a4890c8a2c410ae1d6b6245117c548bac05b5b21/src
 /bp-xprofile/bp-xprofile-functions.php#L806

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7050>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list