[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 19:40:15 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 jlooooo):

 Yes indeed not a good solution at all (wp_cache_flush()).

 Tried to debug it further. BP_XProfile_ProfileData::get_all_for_user() is
 not returning the correct data. Didn't go into bp_xprofile_get_groups()
 yet.

 Another function does return the correct data: $bio =
 xprofile_get_field_data('bio', $user_id);
 Not sure why, but at least I don't have to flush the cache site wide
 anymore.

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


More information about the buddypress-trac mailing list