[buddypress-trac] [BuddyPress Trac] #4522: group forum index not refreshing when used with a persistant object cache
buddypress-trac
noreply at wordpress.org
Wed Sep 28 04:25:40 UTC 2016
#4522: group forum index not refreshing when used with a persistant object cache
--------------------------+---------------------
Reporter: DJPaul | Owner: r-a-y
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Forums | Version: 1.5.4
Severity: major | Resolution: fixed
Keywords: |
--------------------------+---------------------
Changes (by r-a-y):
* owner: => r-a-y
* resolution: wontfix => fixed
Comment:
In [changeset:"11165"]:
{{{
#!CommitTicketReference repository="" revision="11165"
Legacy Forums: Fix persistent caching issue with bbPress v1.2.
For the legacy forums component, we bundle bbPress v1.2, which includes
BackPress. BackPress uses its own version of `wp_cache_flush()` that
allows for clearing cache groups:
https://backpress.trac.wordpress.org/browser/trunk/includes/functions.wp-
object-cache.php?marks=77,80#L67
bbPress v1 uses this syntax for `wp_cache_flush()` throughout its
codebase:
https://bbpress.trac.wordpress.org/browser/tags/1.2/bb-includes/functions
.bb-posts.php?marks=452-454#L449
https://bbpress.trac.wordpress.org/browser/tags/1.2/bb-includes/functions
.bb-topics.php?marks=218-219,226-228#L213
However, WordPress' version of `wp_cache_flush()` does not support
clearing
cache groups. This causes various cache invalidation issues as bbPress v1
(incorrectly) assumes that those using a persistent object cache plugin
will support cache group clearing.
To workaround this, we intentionally tell WordPress not to use the
following cache groups as persistent - `bb_forums`, `bb_query`, `bb_post`,
and `bb_cache_posts_post_ids`.
Props wpdennis, r-a-y.
Fixes #4522, #4759.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4522#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list