-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add wp theme cache command #392
Comments
This would be useful for cache invalidation of theme caches, related to current performance work. |
I amenable to this. Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices. |
The delete method is public, but maybe this could be used via |
It maybe possible to use a reflection or copy the logic from inside these methods.
It is not possible, as the cache key is not predictable. See. Cache key have been salted with a cache hash. Not be mention the other cache clearing that happens in the |
Can we maybe try to replicate the exact functions being internally used in |
What would the be the benefit of that? |
The benefit would be that we shall be able to replicate the complete functionality of the private functions |
Feature Request
Describe your use case and the problem you are facing
Add the following commands
Describe the solution you'd like
Add command would map to the method cache_add on WP_Theme class.
Get command would map to the method cache_get on WP_Theme class.
Delete command would map to the method cache_delete on WP_Theme class.
This would help manage and clear theme related caches.
The text was updated successfully, but these errors were encountered: