Performance & Hosting

How to Clear WordPress Cache

Step-by-step guide to clear plugin, hosting, CDN, and browser cache safely

Changes not showing up on your site, even after you click “Update” in WordPress? In most cases, the problem is cache: your site is serving an older, stored copy of the page instead of the fresh version you just edited.

In this guide, you’ll learn exactly how to clear WordPress cache at every layer — plugin cache, hosting/server cache, CDN cache, and your browser cache — without breaking your site. We’ll also cover a few emergency techniques if the usual “Clear Cache” button doesn’t work.

If you want to go deeper into how caching works across an entire site, you can also review the full WordPress caching setup guide after you finish this walkthrough.

Step 1: Understand the Types of Cache in WordPress

Before you start purging things, it helps to know what you’re clearing. WordPress sites often have more than one type of cache, and missing a layer is a common reason your changes still don’t show.

Here are the main cache types you’ll deal with:

  • Page cache (HTML cache): Stores complete pages so WordPress and PHP don’t rebuild them on every request.
  • Object cache: Stores database query results and internal data (often using Redis or Memcached).
  • Server/hosting cache: Many managed WordPress hosts add their own caching layer in front of WordPress.
  • CDN cache: Content Delivery Networks (CDNs) like Cloudflare cache copies of your pages and assets on edge servers.
  • Browser cache: Your visitor’s browser stores static files (CSS, JS, images) to speed up repeat visits.
Note: When troubleshooting, assume there may be multiple caches between your content and your visitor. Clearing just one layer may not be enough.

Prerequisites

You don’t need to be a developer to clear WordPress cache, but you should have a few basics ready so nothing blocks you halfway through.

  • Access to your WordPress admin dashboard (wp-admin).
  • Login to your hosting control panel (cPanel, Plesk, custom host panel, etc.).
  • Login to your CDN account if you’re using one (Cloudflare, etc.).
  • Optionally, FTP/SFTP or file manager access and WP-CLI (for advanced troubleshooting steps).

Step 2: Clear Cache from Your WordPress Dashboard

Most WordPress sites use a caching plugin (or a performance plugin that includes caching). These plugins usually offer one-click buttons to clear page cache.

Common caching plugins include LiteSpeed Cache, WP Super Cache, W3 Total Cache, WP Rocket, and others. Even though the interface differs, the process is similar.

  1. Log in to WordPress admin.
  2. Look at the top admin bar for a cache-related menu labeled something like “Clear Cache”, “Purge All”, or “Flush Cache”.
  3. Click the option that clears all cache or “Purge All” for your plugin.

If you don’t see a cache menu in the admin bar, open the plugin’s settings instead:

  1. Go to Settings → [Your Cache Plugin] or Plugins → Installed Plugins and click Settings under your caching plugin.
  2. Look for buttons like “Clear Cache”, “Empty All Caches”, or “Delete Cache”.
  3. Click the button, then visit your site in a new browser tab to confirm the changes appear.
Pro Tip: If your plugin supports it, set up automatic cache clearing whenever you publish or update a post so you don’t have to do this manually every time.

If you’re still choosing a plugin, this comparison of the best WordPress caching plugins can help you pick one that fits your hosting stack and experience level.

Step 3: Clear Server-Level Cache in Your Hosting Panel

Managed WordPress hosting providers and some shared hosts add their own caching layer on the server. This cache can keep serving old content, even if you’ve cleared your plugin cache.

Because each host uses a different interface, use this as a general workflow:

  1. Log in to your hosting control panel.
  2. Open the site management page for the domain you’re working on.
  3. Look for sections labeled “Caching”, “Performance”, “Turbo”, or “Server Cache”.
  4. Click the option to “Purge Cache” or “Flush Cache” for your site.

After purging the server cache, reload your site in a private/incognito window. If you finally see your changes, you’ve found the missing layer.

Warning: Some hosts also cache dynamic pages like checkout or cart pages. Make sure those URLs are excluded in your host’s cache settings so you don’t break logins, carts, or membership areas.

Step 4: Purge Cache in Your CDN (Cloudflare and Others)

If you use a CDN, it may be caching CSS, JavaScript, images, and sometimes HTML pages. Even if you clear plugin and server cache, the CDN may still serve old assets.

Here’s the typical flow (using Cloudflare as an example):

  1. Log in to your CDN dashboard.
  2. Select the domain you’re working on.
  3. Open the Caching section.
  4. Use “Purge by URL” to clear cache for specific pages you changed, or use “Purge Everything” if many assets are stale.
Warning: “Purge Everything” on a CDN may briefly slow your site for all visitors until cache warms up again. Use it when necessary, but for minor edits, purging only specific URLs is safer.

Step 5: Clear Your Browser Cache to Rule Out Local Issues

Sometimes the site is updated correctly, but your browser is still holding onto an old version of the page or its assets. Before you dive into advanced troubleshooting, rule this out.

Quick checks:

  • Open your site in an incognito/private window. If the change appears there, it’s a browser cache issue.
  • Try another browser or device (desktop vs. mobile).

If you confirm it’s a browser cache problem, clear cache only for your site:

  • In most browsers, open Settings → Privacy & Security → Site Settings → View permissions and data stored across sites (or similar).
  • Find your domain and clear stored data/cache for that site.
Note: Ask your client or team members to do the same test in an incognito window before you start changing caching settings on the server.

Step 6: Test Your Site After Clearing the Cache

After clearing cache at each layer, you should verify that the new version of your content is live and that performance hasn’t regressed.

  1. Make a small, obvious change on a test page, such as adding a unique word or emoji in the footer.
  2. Clear cache in the plugin, hosting panel, CDN, and browser as needed.
  3. Open the page in an incognito window and check that the unique change appears.

If you’re working on performance improvements in addition to cache clearing, use a speed audit checklist such as the step-by-step WordPress speed optimization guide to confirm your site is loading efficiently for real users.

Step 7: Troubleshoot When WordPress Cache Won’t Clear

Sometimes the usual “Clear Cache” buttons don’t work, either because of a misconfigured plugin or a deeper issue on the server. In those cases, you can try more advanced methods.

1. Temporarily disable caching plugins

  1. Go to Plugins → Installed Plugins.
  2. Deactivate your caching plugin(s).
  3. Check your site again in an incognito window.

If the change shows up after you deactivate the plugin, the plugin’s cache or configuration was the problem. Reactivate it and review its settings or reinstall it cleanly.

2. Clear cache using WP-CLI

If you have SSH access and WP-CLI installed, you can clear some caches directly from the command line. Run these commands in your site’s root directory via SSH:

# Clear WordPress object cache
wp cache flush

# Clear all transients (temporary cached data)
wp transient delete --all

These commands are safe, but they may temporarily increase load while caches rebuild. Always run them on the correct site if you’re hosting multiple WordPress installs.

3. Manually remove cache directories

As a last resort, you can delete cache folders manually via FTP/SFTP or your hosting file manager:

  1. Connect via FTP/SFTP or open your host’s File Manager.
  2. Navigate to /wp-content/.
  3. Look for folders such as /cache/, /w3tc-cache/, /wp-super-cache/, or plugin-specific cache directories.
  4. Rename them (for example, cache-old) or delete them if you’re sure you don’t need the data.
Warning: Deleting folders in /wp-content/ can break plugins if you remove the wrong thing. If you’re unsure, take a quick backup first or consult your host’s support.

Keep Your WordPress Cache Under Control

Clearing WordPress cache doesn’t have to feel like guesswork. Once you understand the different layers — plugin, server, CDN, and browser — you can follow a structured process to clear the right cache at the right time.

Use this guide as your go-to checklist whenever changes don’t show up, and combine it with sensible cache rules and exclusions. Over time, you’ll spend less effort on “Why isn’t this updating?” and more time improving performance and content quality for your visitors.

Further Reading

Frequently Asked Questions

Do I need to clear WordPress cache every time I update a post?

Most modern caching setups will automatically clear or “purge” cache when you publish or update a post. However, if you change theme templates, menus, widgets, or global elements (like headers and footers), you may need to manually clear cache so those changes appear everywhere.As a rule of thumb, clear cache when you make site-wide changes, update your theme or plugins, or notice that edits aren’t visible in an incognito window.

Will clearing cache break my WordPress site?

Clearing cache does not delete your content, database, or files. It simply removes temporary stored copies so WordPress can rebuild them. In rare cases, clearing cache might expose an existing layout or code problem that was previously hidden, but the cache clearing itself isn’t destructive.To stay safe, avoid clearing cache in the middle of high-traffic sales or launches, and keep a recent backup in place before making major performance or caching changes.

How do I clear cache in WordPress without a plugin?

If you don’t have a caching plugin, your caching may be happening at the hosting or CDN level. In that case, log in to your host’s control panel and look for performance or caching tools to purge server cache, then use your CDN dashboard to purge its cache as well.You can also use WP-CLI to clear WordPress object cache and transients with commands like wp cache flush and wp transient delete --all when you have SSH access.

Why do my changes still not show after clearing every cache?

If you’ve cleared plugin, server, CDN, and browser caches but still don’t see changes, double-check that you edited the correct post or template and that there are no redirect rules sending you to an old URL.Also confirm you’re testing the correct environment (live vs. staging) and that your DNS is pointing to the right server. If everything looks correct, your host’s support team can often help identify an additional caching layer or proxy you may have missed.

Does clearing cache affect SEO or site rankings?

Occasional cache clearing does not hurt SEO. In fact, clearing cache after major design or structural changes ensures search engines see the latest version of your site. The key SEO risk is running your site with no caching at all, which can slow down pages and negatively affect Core Web Vitals.As long as you keep caching enabled and only purge when necessary, your site should remain fast and SEO-friendly. For long-term improvements, pair good caching with a broader speed strategy rather than relying on cache alone.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button