keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

wp-cli commands #45

Closed jjtroberts closed 4 years ago

jjtroberts commented 5 years ago

Would be great to have the plugin tie into the wp cache flush command and purge the cache/cache-enabler/* directory, or have its own wp-cli command to clear those pages. We run wp transient delete-all && wp cache flush after each Jenkins deployment. While that takes care of the Redis object cache, it does not affect the advanced-cache which must be purged from the UI or a scripted rm -rf <path-to-cache-dir> command.

I can do this, however, wp eval "Cache_Enabler::clear_total_cache();"

svenba commented 4 years ago

This is going to be available in v1.3.5.