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 database
flush object
flush minify
wp w3-total-cache flush all

Was this post helpful?

Leave a Comment