[buddypress-trac] [BuddyPress Trac] #4759: Group forum permalink after reply broken when using persistent object cache

buddypress-trac noreply at wordpress.org
Wed Sep 28 04:25:40 UTC 2016


#4759: Group forum permalink after reply broken when using persistent object cache
------------------------------+---------------------
 Reporter:  wpdennis          |       Owner:  r-a-y
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.7
Component:  Forums            |     Version:  1.0
 Severity:  blocker           |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by r-a-y):

 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => 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/4759#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list