Here we cover how to clear W3 Total Cache using the WordPress command line (WP-CLI).
This may need to be done if the WordPress site shows an error message, a blank page, or if changes are not taking effect when the browser cache and any other external cache (Cloudflare, Sucuri, etc.) have already been cleared.
Related Articles
Clearing Browser Cache
SSH into Shared Server
Clear W3 Total Cache using WP-CLI
- SSH into your server
- Navigate to the relevant document root for your WordPress site using
cd path/to/doc/root
REPLACE: path/to/doc/root with the path to the document root for the site. - Run
wp w3-total-cache flush all
to clear the W3 Total Cache
TIP: This command should return Success: Everything flushed successfully.