[buddypress-trac] [BuddyPress Trac] #5570: `bp_get_member_profile_data` showing wrong values cached for other users

buddypress-trac noreply at wordpress.org
Wed Mar 25 15:51:51 UTC 2015


#5570: `bp_get_member_profile_data` showing wrong values cached for other users
-------------------------------------------+-------------------------------
 Reporter:  frederick.ding                 |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Under
Component:  Component - XProfile           |  Consideration
 Severity:  major                          |     Version:  2.0
 Keywords:  needs-patch reporter-feedback  |  Resolution:
-------------------------------------------+-------------------------------

Comment (by boonebgorges):

 It's probably a bad idea to add `wp_cache_flush()` there - it means that
 the entire site cache will be flushed every time someone views the member
 directory, which could cause significant performance issues.

 >  Not sure how I can debug this.

 Well, the way I'd debug it is to start digging in to see where the cache
 pollution is taking place. Look first at `bp_member_profile_data()` and
 then `bp_get_member_profile_data()`. Presumably, it's calling
 `BP_XProfile_ProfileData::get_all_for_user()` to fill in the profile date.
 Is tha data that's being returned here correct? If not, go into that
 function and check to see if the values coming from
 `bp_xprofile_get_groups()` are correct. Etc. I'm afraid that, without
 being able to reproduce (and I've spent the last hour trying to
 reproduce!!), I can't be much more help than this.

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


More information about the buddypress-trac mailing list