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

buddypress-trac noreply at wordpress.org
Wed Jun 1 20:32:47 UTC 2016


#7050: Need to clear user cache after running direct query to update user
displayname
------------------------------------------+------------------------------
 Reporter:  prettyboymp                   |       Owner:  johnjamesjacoby
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  2.6
Component:  Component - XProfile          |     Version:
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  needs-patch needs-unit-tests  |
------------------------------------------+------------------------------
Changes (by djpaul):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"10857"]:
 {{{
 #!CommitTicketReference repository="" revision="10857"
 xprofile: remove direct SQL query when syncing BP profile to WP, and clear
 BP user cache.

 When the user updates their profile name, and xprofile syncing is enabled
 (the default), we update the `display_name` property of the WordPress
 user. We remove the direct query to help prevent WordPress having a stale
 cache.

 We also need to clear our own legacy user cache object so that
 `bp_displayed_user_fullname` returns accurate data.

 Fixes #7050
 }}}

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


More information about the buddypress-trac mailing list