[buddypress-trac] [BuddyPress Trac] #5570: `bp_get_member_profile_data` showing wrong values cached for other users
buddypress-trac
noreply at wordpress.org
Thu Oct 16 20:41:41 UTC 2014
#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:
Component: XProfile | Version: 2.0
Severity: major | Resolution:
Keywords: needs-patch |
----------------------------+------------------
Changes (by will_c):
* cc: will@… (added)
* keywords: => needs-patch
Comment:
Just wanted to chime in here. I realize that Frederick hasn't provided
more information about this yet, but I am fairly certain that I'm facing
the exact same issue. I am using BuddyPress 2.1.1, WordPress 4.0, and
Memcached for caching.
As Fredrick suggested, I have also potentially traced this back to a
caching issue. We have a custom members loop and display xprofile data for
each user. We have the correct data the first time loading the page after
clearing the cache, but after the first load (ie when using data from the
cache), anyone that has an empty field inherits the data from the previous
person to have filled in that field.
To replicate, you should be able to have 3 users and create a few basic
profile fields. If you fill in profile fields for one user and not the
others, when displaying xprofile field components in the members loop you
should see the duplicated values for the users that have blank entries for
those fields.
If I comment out [https://buddypress.trac.wordpress.org/browser/trunk/bp-
xprofile/bp-xprofile-classes.php?rev=8298#L326 line 326-336] (essentially
removing the cache) everything works as expected.
I'm working on finding a better solution, but wanted to post here in case
anyone else has faced this issue or has an existing workaround. I will
update this post when I have more information.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5570#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list