Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Clear WordPress Cache (All Methods)

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To clear your WordPress cache, the fastest method is to use your caching plugin's purge button (e.g., WP Rocket, W3 Total Cache, or LiteSpeed Cache). If you don't use a plugin, you can clear server-side cache via your hosting control panel (like cPanel) or use a free plugin like WP Super Cache. This guide walks you through every method, including browser cache, CDN cache, and object cache.

What You'll Need

  • Access to your WordPress admin dashboard (wp-admin).
  • If using a caching plugin, know which one you have (check Plugins > Installed Plugins).
  • If clearing server cache, you may need your hosting control panel login (cPanel, Plesk, or custom).
  • For CDN cache, you'll need your CDN provider's dashboard login (e.g., Cloudflare, StackPath).

Step-by-Step

Method 1: Using a Caching Plugin (Most Common)

  1. Log in to your WordPress admin dashboard.
  2. Go to Plugins > Installed Plugins and check which caching plugin is active. Common ones: WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, or WP Fastest Cache.
  3. In the left sidebar, click the plugin's name (e.g., WP Rocket or LiteSpeed Cache).
  4. Look for a button labeled “Clear Cache”, “Purge Cache”, or “Empty Cache”. It's usually at the top of the plugin's settings page or in a toolbar menu.
  5. Click that button. The plugin will delete all cached pages and files.
  6. If your plugin has multiple cache types (page cache, minified CSS/JS, object cache), clear them all if possible. Most plugins have a “Purge All” or “Clear All Cache” option.

Method 2: Using a Free Plugin (If You Don't Have One)

  1. In your WordPress admin, go to Plugins > Add New.
  2. Search for “WP Super Cache” or “WP Fastest Cache”.
  3. Install and activate one of them.
  4. After activation, go to the plugin's settings page (e.g., Settings > WP Super Cache).
  5. Click the “Delete Cache” or “Clear Cache” button.

Method 3: Clearing Server Cache (Hosting Level)

  1. Log in to your hosting control panel (cPanel, Plesk, or your host's custom panel).
  2. Look for a section called “Caching”, “Performance”, or “Cache”.
  3. If using cPanel, find the “Cache Manager” icon (often under “Software” or “Advanced”).
  4. Select your domain and choose to clear “Caching Only” or “Purge Cache”.
  5. If you don't see such options, contact your host's support and ask them to clear the server cache for your site.

Method 4: Clearing Browser Cache (For Your Own View)

  1. If you're not seeing changes on your own browser, clear your browser's cache.
  2. On Chrome/Edge: Press Ctrl+Shift+Delete (Windows) or Cmd+Shift+Delete (Mac).
  3. Choose “Cached images and files” and click “Clear data”.
  4. On Firefox: Press Ctrl+Shift+Delete and select “Cache”.
  5. On Safari: Go to Safari > Clear History and choose “All history”.

Method 5: Clearing CDN Cache (If You Use Cloudflare or Similar)

  1. Log in to your CDN provider's dashboard (e.g., Cloudflare).
  2. Select your domain.
  3. Click the “Caching” tab (in Cloudflare, it's in the top menu).
  4. Click “Purge Everything” (or “Purge Cache” in other providers).
  5. Confirm the action. This clears all cached files on the CDN's edge servers.

Common Mistakes

  • Not clearing all cache types: Many users only clear the page cache but forget about object cache or CDN cache. Always clear all available caches.
  • Clearing cache too often: Clearing cache frequently can slow down your site temporarily because it forces WordPress to regenerate all pages. Only clear when needed.
  • Using multiple caching plugins: Running two caching plugins (e.g., WP Super Cache and W3 Total Cache) can cause conflicts and errors. Stick to one.
  • Forgetting to clear server cache: If your host uses server-side caching (like Varnish), clearing only plugin cache won't show changes. Always check with your host.
  • Not clearing browser cache: Even after clearing WordPress cache, your browser may still show old versions. Always clear browser cache as well.

Tips

  • If you're making frequent changes, consider using a staging site to test before pushing live—this reduces the need to clear cache constantly.
  • Set up a cache preload after clearing (if your plugin supports it) to regenerate pages quickly and avoid slow load times.
  • Use a cache plugin that offers a “cache lifetime” setting—set it to a reasonable time (e.g., 24 hours) so you don't have to manually clear often.
  • If you use Cloudflare, you can add a “Cache Purge” button to your WordPress admin via a plugin like “Cloudflare” official plugin, making it easier to clear CDN cache.

Troubleshooting

If clearing cache doesn't seem to work:

  1. First, verify you cleared all types: plugin cache, server cache, CDN cache, and browser cache.
  2. Check if your site is behind a proxy or firewall that caches content (like Sucuri or StackPath). Clear that as well.
  3. If you're using a managed WordPress host (like WP Engine, Kinsta), they have server-level caching. Use their built-in cache purge option in your hosting dashboard or contact support.
  4. If changes still don't appear, hard refresh your browser: press Ctrl+F5 (Windows) or Cmd+Shift+R (Mac) on the page.
  5. If you're editing CSS or JS files, ensure your plugin's “Minify” or “Combine” options are cleared, as they can serve old files.
  6. If you're using a page builder (like Elementor), they have their own cache. Clear that via Elementor > Tools > Regenerate CSS.

Frequently Asked Questions

How often should I clear WordPress cache?

Only when you've made changes to your site's content, design, or functionality. For regular maintenance, set an automatic cache lifetime (e.g., 24 hours) in your plugin.

Will clearing cache delete my website content?

No. Clearing cache only removes temporary files (cached copies of pages). It does not affect your posts, pages, images, or database.

Do I need a caching plugin to clear cache?

No, but it's the easiest way. You can also clear server cache via your hosting panel, or use browser cache clearing for your own view. However, without a plugin, your site may not have page caching enabled at all.

Why do I still see old content after clearing cache?

This usually means one cache layer was missed (e.g., CDN or server cache). Check all layers, and also try a hard refresh in your browser.

Is it safe to delete all cache in WP Super Cache?

Yes, it's safe. The cache will be regenerated as visitors access your pages. It may cause a slight performance dip temporarily.

Can I clear cache from my phone?

Yes, you can log into your WordPress admin from any device and clear cache using the same steps. For browser cache on mobile, go to your browser's settings and clear cached data.