Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #4759, comment 6


Ignore:
Timestamp:
09/28/2016 12:34:27 AM (9 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4759, comment 6

    initial v1  
    11I came across this issue today (don't ask why).
    22
    3 The problem is with the legacy forums' usage of their own object caching functions, particularly `wp_cache_flush( 'my-cache-group' )`.  WP's `wp_cache_flush()` doesn't accept a parameter, so it is impossible to clear the cache for these cache groups.  Whereas old bbPress / BackPress does support cache group clearing:
     3The problem is with the legacy forums' usage of their own object caching functions, particularly `wp_cache_flush( 'my-cache-group' )`.  By default, WP's `wp_cache_flush()` doesn't accept a parameter, so it is impossible to clear the cache for these cache groups.  Whereas old bbPress / BackPress does support cache group clearing:
    44https://backpress.trac.wordpress.org/browser/trunk/includes/functions.wp-object-cache.php?marks=77,80#L67
    55
    6 Attached patch implements wpdennis' suggestion from comment:3, but only for the cache groups that are necessary.
     6BackPress (incorrectly) assumes that those using a persistent object cache will be using an object cache drop-in that supports cache group clearing.
     7
     8Attached patch implements wpdennis' suggestion from comment:3 to use `wp_cache_add_non_persistent_groups()`, but only for the cache groups that are necessary.