Performance & Hosting

How to Clear Cache on WordPress

Faster WordPress performance and hosting

If your latest edits are not showing up, you need to clear cache on WordPress (also called purging cache or flushing cache) in the right order so you do not clear the wrong layer and think nothing changed.

This guide shows you how to clear WordPress cache across every layer: your caching plugin, hosting/server cache, CDN cache, and your browser cache—then how to confirm the cache purge worked.

If you want a quick walkthrough, see How to clear cache WordPress, then use this tutorial for the safe order and troubleshooting.

What You Need Before You Clear WordPress Cache

Before you clear cache in WordPress, make sure you can access the cache layer you need to purge (plugin, host, CDN, or browser).

  • Admin access to your WordPress dashboard to clear WordPress plugin cache.
  • Access to your hosting panel to purge server cache (Varnish, LiteSpeed, or managed hosting cache).
  • Access to your CDN dashboard if you use one, so you can purge CDN cache.
  • A browser you can hard refresh to clear browser cache and reload assets.

Step 1: Identify Where Your WordPress Cache Is Stored (Plugin, Host, CDN, Browser)

Key rule: if you clear cache on WordPress but changes still do not show, another cache layer is still serving an older version. First identify what needs a cache purge.

Method Where You Use It Main Purpose
Block Editor Pages or Posts » Edit screen Update text, images, buttons, and layouts using blocks without code (then clear WordPress cache to see changes).
Theme Customizer Appearance » Customize Change logo, colors, typography, and basic header/footer settings sitewide (then purge cache if updates don’t show).
Site Editor (Block Themes) Appearance » Editor Edit templates and global styles for headers, footers, and layouts (then flush cache across layers).
Page Builder (Elementor, Divi, WPBakery) Page editor » Builder interface Adjust drag-and-drop sections with advanced design controls (often requires clearing cache and regenerating CSS).
Manual Code Edits Child theme files or snippets plugin Add custom styling or template changes (always clear cache on WordPress + CDN/browser afterward).
  1. Open your site in a private window to bypass some browser cache.
  2. Look at the WordPress admin bar for a cache menu (Purge Cache / Clear Cache) to clear caching plugin cache.
  3. Check Plugins » Installed Plugins for a caching/performance plugin you can use to clear WordPress cache.
  4. Check your host panel for server caching (often called server cache, dynamic cache, Varnish, or LiteSpeed cache) to purge hosting cache.
  5. If you use a CDN, confirm you can purge CDN cache (by URL or full purge).

Verify success: You can name the exact cache layers you will clear (plugin cache, server cache, CDN cache, and browser cache).

Step 2: Clear Cache in Your WordPress Caching Plugin

Clear Page Cache and Regenerate CSS/JS Files After a Cache Purge

Start here: your caching plugin is the most common place to clear cache in WordPress. If you do not purge this layer, you may keep seeing old HTML or minified files even after you purge other caches.

  1. In the WordPress admin bar, click your plugin option like Purge Cache or Clear Cache to clear WordPress cache.
  2. If there is no admin bar button, open the plugin settings page and select Clear Cache or Purge All.
  3. If the plugin has CSS/JS options, also regenerate assets (Clear CSS Cache / Regenerate Files) so your cached CSS updates.
  4. Reload the updated page in a private window to confirm the plugin cache purge worked.
LiteSpeed Cache plugin dashboard showing the 'Purge All' option selected in the top bar menu for clearing WordPress cache.
Access the ‘Purge All’ option in the LiteSpeed Cache plugin menu to clear all cache on your WordPress site.

Verify success: You see a “cache cleared” notice and your page looks updated after the cache purge.

WooCommerce note: clearing cache is safe, but do not cache cart/checkout/account pages. Exclude them in your plugin before you rely on page caching.

Step 3: Purge Hosting Cache (Server Cache, Varnish, LiteSpeed)

Flush Full Page Cache and Dynamic Cache at the Host Level

After you clear cache in WordPress, purge the server layer. Many hosts add a separate hosting cache that can still serve an older version until you flush server cache.

  1. Log in to your hosting dashboard to purge hosting cache.
  2. Find the caching area (Performance / Speed / Caching).
  3. Click Purge, Flush Cache, or Clear Cache to clear the server cache for your site.
  4. If your host has separate toggles (dynamic cache vs object cache), purge the full page/server cache first.

Verify success: The host shows a successful purge and the updated page appears after the server cache purge.

If you are unsure which layer is serving content, read Best WordPress caching plugins to understand server cache vs plugin cache.

Step 4: Purge CDN Cache (Cloudflare and Other CDNs)

Purge by URL vs Purge Everything for Faster Cache Refresh

If you use a CDN, you also need to purge CDN cache so edge servers stop serving cached HTML, CSS, and images. This step is essential when you clear cache on WordPress but visitors still see the old version.

  1. Log in to your CDN provider (for example Cloudflare) to clear CDN cache.
  2. Open the cache section and choose Purge by URL for the page you updated.
  3. If the issue is sitewide, use Purge Everything (only when necessary) to fully flush CDN cache.
  4. If you changed only an image or CSS file, purge those asset URLs to avoid a full CDN cache purge.

Verify success: The CDN confirms the purge request and your updated page loads after the CDN cache purge.

Need help deciding? Start with How to use cdn in WordPress or WordPress cdn blog setup.

Step 5: Clear Browser Cache and Force a Hard Refresh

Confirm the Updated Page Loads Without Cached Files

Even after you clear WordPress cache and purge CDN cache, your local browser may still hold old CSS, JS, and images. Clear the browser cache and hard refresh so the browser downloads fresh files.

  1. Open the updated page.
  2. Hard refresh to bypass browser cache:
    • Windows: Ctrl + F5
    • Mac: Cmd + Shift + R
  3. If needed, clear your browser cache for “All time” and reload the page.
  4. Re-check in a private window to confirm the cache refresh is real.

Verify success: Your changes show after the browser cache clear and hard refresh.

Step 6: Flush Object Cache (Redis or Memcached) When Changes Still Don’t Show

Run WP-CLI Cache Flush to Clear Persistent Object Cache

If you already cleared cache on WordPress (plugin + host + CDN) and the issue persists, you may need to flush object cache. Redis or Memcached can keep database results cached until you clear them.

  1. If your host provides object cache controls, click Flush or Clear to purge object cache.
  2. If you use an object cache plugin, open its settings and use Flush Cache.
  3. If you have WP-CLI access, run a safe command to clear cache at the object layer.
wp cache flush

Verify success: Reload the page and confirm the updated content shows after the object cache flush.

If you want a beginner-friendly walkthrough, read Beginner Guide To Redis Object Cache In WordPress.

Step 7: Verify Your WordPress Cache Is Cleared (Live Page Checks)

Test the URL, Private Window, and Query String Cache Bypass

After you clear cache on WordPress, verify the live page is updated for real visitors. This ensures your cache purge worked across plugin, server, CDN, and browser cache layers.

  1. Open the page URL in a private window to avoid browser cache.
  2. Append a harmless query string like ?v=1 to force a cache refresh and test if a cached version is being served.
  3. Check from another device (mobile data is ideal) to confirm the cache clear is not just local.
  4. If still wrong, temporarily disable your caching plugin, then purge hosting cache again, and re-enable the plugin.

Verify success: The updated page appears on multiple devices after the full clear cache process.

If clearing cache causes layout issues, minification/combination may be the cause. Disable those options, then regenerate files and re-run your cache purge sequence.

Conclusion: Clear Cache on WordPress in the Correct Order

To clear cache on WordPress reliably, purge in this order: caching plugin cachehosting/server cacheCDN cachebrowser cache. This complete cache flush ensures your newest changes display everywhere.

Further Reading on WordPress Caching and Cache Purging

If you want deeper control over WordPress caching, these guides will help you fine-tune how you clear cache, purge cache, and optimize cache settings.

FAQ: Clearing Cache on WordPress (Plugin, Host, CDN, Browser)

When should I clear cache on WordPress

You should clear cache on WordPress after publishing changes, updating themes or plugins, changing CSS, switching fonts, editing menus, or adjusting caching settings. If content is not updating, run a full cache purge (plugin, host, CDN, and browser cache).

Why are my changes not showing after I cleared WordPress cache

Usually you cleared one cache layer but another cache is still active. Purge in this order: caching plugin cache, hosting/server cache, CDN cache, then clear browser cache and hard refresh. Confirm in a private window.

Is it safe to purge cache on a WooCommerce site

Yes, purging cache is safe. The risk is caching the wrong pages. Exclude cart, checkout, and my account pages from page caching and avoid caching HTML at the CDN level for those pages.

Will clearing cache delete my content or settings

No. Clearing cache removes temporary cached files so the newest version can be served. It does not delete posts, pages, media, or WordPress settings.

Should I purge everything on my CDN

Start with purge by URL to clear CDN cache for the specific page and related assets (CSS/images). Use purge everything only if targeted purges do not fix the caching issue.

How do I know if my host is caching pages

If your hosting panel includes options like dynamic cache, Varnish, LiteSpeed cache, or performance caching, your host is caching pages. If changes do not show after you clear cache in WordPress, you likely need to purge hosting cache too.

Related Articles

Leave a Reply

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

Back to top button