Changes between Initial Version and Version 1 of Ticket #4759, comment 6
- Timestamp:
- 09/28/2016 12:34:27 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4759, comment 6
initial v1 1 1 I came across this issue today (don't ask why). 2 2 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:3 The 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: 4 4 https://backpress.trac.wordpress.org/browser/trunk/includes/functions.wp-object-cache.php?marks=77,80#L67 5 5 6 Attached patch implements wpdennis' suggestion from comment:3, but only for the cache groups that are necessary. 6 BackPress (incorrectly) assumes that those using a persistent object cache will be using an object cache drop-in that supports cache group clearing. 7 8 Attached patch implements wpdennis' suggestion from comment:3 to use `wp_cache_add_non_persistent_groups()`, but only for the cache groups that are necessary.