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].
Desired Behavior
WordPress 6.1 will add the new function
wp_cache_flush_group()
, see https://core.trac.wordpress.org/ticket/4476: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.