Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
tomjn opened this issue May 20, 2025 · 2 comments
Open
1 task done

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

tomjn opened this issue May 20, 2025 · 2 comments

Comments

@tomjn
Copy link

tomjn commented May 20, 2025

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
Copy link
Author

tomjn commented May 20, 2025

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.

@swissspidy
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants