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, NGINX cache, and any other external cache (Cloudflare, Sucuri, etc.) have already been cleared.
Related Articles
Purge Website's Nginx Cache
Clearing Browser Cache
SSH into Shared Server
SSH into VPS or Dedicated Servers
Clear W3 Total Cache using WP-CLI
- SSH into your server
TIP: Guides on SSHing into different server types can be found in the Related Articles section above.- If you SSH'd into your VPS or dedicated server as root,
switch
to the relevant cPanel user
- If you SSH'd into your VPS or dedicated server as root,
- 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.
Comments
0 comments
Article is closed for comments.