cache-command icon indicating copy to clipboard operation
cache-command copied to clipboard

Support for term/blog/post/user/etc cache flushes

Open tomjn opened this issue 6 months ago • 2 comments

Feature Request

Describe your use case and the problem you are facing

Flushing the entire cache can be expensive, and sometimes you can flush just a group but that doesn't cover everything.

On the other hand there are functions that clear term caches that also touch some options, these aren't represented in CLI without forcing you to open a shell and execute the PHP call directly. Not all hosts allow this.

Describe the solution you'd like

A way to do something like https://developer.wordpress.org/reference/functions/clean_term_cache/ or https://developer.wordpress.org/reference/functions/clean_comment_cache/ etc without writing raw PHP code

tomjn avatar May 20 '25 13:05 tomjn

Of note, a wp cache flush on a large site can have significant impacts for performance, sometimes you only need to flush specific types of cached data.

tomjn avatar May 20 '25 13:05 tomjn

Interesting suggestion! I wonder how this could fit into the current naming scheme for commands 🤔

swissspidy avatar May 20 '25 15:05 swissspidy