[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 14:50:48 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:
Changes (by boonebgorges):

 * milestone:  2.3 => Under Consideration


 jlooooo - I'm afraid I'm still unable to reproduce. Even with persistent
 caching enabled, using code exactly like what you've provided within the
 context of the member loop, users without profile data for the 'Bio' field
 have `$profile_bio == false`.

 There are ways to clear the cache, but that doesn't fix the underlying

 Can you please provide more of the code that you're using? Is this a
 custom template, or a plugin, or something else? The more details you can
 provide, the more likely I'll be able to reproduce.

 Replying to [comment:13 jlooooo]:
 > Hi,
 > Just would like to mention I have this issue too. I use
 > {{{
 > $profile_bio = bp_get_member_profile_data('field=Bio');
 > if ($profile_bio) {
 >     echo profile_bio;
 > }
 > }}}
 > to output member profile data in the members loop and when a member does
 not have profile data it get's the value of the former member.
 > It seems to be related to Object Caching. I use xCache together with
 W3TC on production site. On localhost I don't use xCache and everything is
 fine. When I disable object cache in W3TC it's fixed too on production.
 > Is there a way to clear the Object Cache?
 > Using WP 4.1.1 and BP 2.2.1

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

More information about the buddypress-trac mailing list