#6299 closed defect (bug) (fixed)
'bp_last_activity' cachegroup should be global
Reported by: | r-a-y | Owned by: | |
---|---|---|---|
Milestone: | 2.2.2 | Priority: | normal |
Severity: | normal | Version: | 2.2 |
Component: | Performance | Keywords: | has-patch |
Cc: |
Description
We missed adding the 'bp_last_activity'
cachegroup as a global group in #5733.
Attachments (1)
Change History (8)
#2
@
10 years ago
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:
- Use an object cache.
- Add the members widget to the root blog and to a sub-site.
- 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. - 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.
Note: See
TracTickets for help on using
tickets.
Good catch r-a-y. I vote we fast track this to 2.2.2 since it's a small fix on a common query.
How did you find this? Did you notice cached results between blogs had duplicate entries, or did you find it sifting through the code base?