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

Include a WP-CLI command for Cache Enabler #63

Closed stevegrunwell closed 4 years ago

stevegrunwell commented 4 years ago

This PR adds a wp cache-enabler command to WP-CLI when Cache Enabler is active.

At this point, there's a single sub-command: "flush".

Usage:

# Flush all page caches
wp cache-enabler flush

# Flush the cache for object IDs 1, 2, and 3
wp cache-enabler flush --ids=1,2,3

# Flush the cache for a particular URL
wp cache-enabler flush --urls=https://example.com/about-us