Automattic / wp-memcached

Memcached Object Cache for WordPress.
https://wordpress.org/plugins/memcached/
GNU General Public License v2.0
160 stars 55 forks source link

Add support for `wp_cache_flush_group()` #112

Closed tyrann0us closed 2 years ago

tyrann0us commented 2 years ago

Desired Behavior

WordPress 6.1 will add the new function wp_cache_flush_group(), see https://core.trac.wordpress.org/ticket/4476:

Currently, you have to specify the id of the cached item in order to delete it via wp_cache_delete, or you have to flush the entire cache via wp_cache_flush. Instead, it would be helpful if one were able to delete an entire group without having to flush all of the cache[s].

Please consider utilizing that function in the Memcached drop-in (https://github.com/Automattic/vip-go-mu-plugins/blob/develop/drop-ins/object-cache/object-cache-next.php).

Actual Behavior

Currently, wp_cache_flush_group() is not used in the drop-in.

Additional notes

It certainly would be necessary to wrap the function call with an if ( function_exists( 'wp_cache_flush_group' ) ) check.

tyrann0us commented 2 years ago

Sorry for opening this in the wrong repository and thanks for transferring, @sjinks! Closing as duplicate of #80.