[buddypress-trac] [BuddyPress Trac] #6299: 'bp_last_activity' cachegroup should be global

buddypress-trac noreply at wordpress.org
Wed Mar 18 14:42:23 UTC 2015


#6299: 'bp_last_activity' cachegroup should be global
--------------------------+--------------------
 Reporter:  r-a-y         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.2.2
Component:  API - Cache   |     Version:  2.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------

Comment (by r-a-y):

 > Did you notice cached results between blogs had duplicate entries, or
 did you find it sifting through the code base?

 Noticed cache invalidation issues with the last activity timestamp when a
 member is active on a sub-site and the `'bp_last_activity'` cache was
 being cleared on the sub-site, but not the BP root blog.

 To duplicate:

 1. Use an object cache.
 2. Add the members widget to the root blog and to a sub-site.
 3. Login as a member on the root blog to generate some activity.  Wait
 five minutes, then go to a sub-site to update the last activity timestamp.
 This is triggered by `bp_core_record_activity()` on the `'wp_head'` hook.
 4. For the members widget on the root blog, the last activity timestamp
 will use the older timestamp.  For the members widget on the sub-site, the
 last activity timestamp will use the latest timestamp.

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


More information about the buddypress-trac mailing list