WP-CLI » Purge cache from W3 Total Cache plugin using WP-CLI

Purge cache from W3 Total Cache plugin using WP-CLI

Here are some useful commands to clear cache from the terminal with wpcli:

cdn_purgepurge URLs from CDN and Varnish
flush allflushes all cache related to W3TC (Page Cache, OC, DB Cache, Minify, etc.)
flush pageflushes pages cache only
flush postsflushes both pages & posts cache
flush databaseflushes DB cache
flush objectflushes OC
flush minifyflushes minified CSS and js files
wp w3-total-cache flush all
See also  Install a WP-CLI Package

Was this post helpful?

Leave a Comment

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.

Recommended