Feature Request
In WordPress 6.1, wp_cache_flush_group was added to core. See blog post.
This function, allows for developers to clear all keys in a cache group, instead of one key at a time.
Describe the solution you'd like
Create a new command that allows for the wp_cache_flush_group function to be called, like so
wp cache clear group <group>
Before calling this function, if should check if the object cache support this functionality, by calling wp_cache_supports and fail fast if the current object cache doesn't support this functionality.
Feature Request
In WordPress 6.1,
wp_cache_flush_groupwas added to core. See blog post.This function, allows for developers to clear all keys in a cache group, instead of one key at a time.
Describe the solution you'd like
Create a new command that allows for the
wp_cache_flush_groupfunction to be called, like sowp cache clear group <group>Before calling this function, if should check if the object cache support this functionality, by calling
wp_cache_supportsand fail fast if the current object cache doesn't support this functionality.