Skip to content

Add support for wp_cache_flush_group #80

@spacedmonkey

Description

@spacedmonkey

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.

Metadata

Metadata

Assignees

Labels

command:cacheRelated to 'cache' commandhelp-wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions