Clearing the right WordPress cache usually makes updated pages show up immediately instead of still displaying the old content. This problem is typically caused by a caching plugin, your browser cache, or server/CDN caching that serves a stored version. Follow the steps below to purge and verify cache at each layer so the new page loads for visitors.
Clear your WordPress cache by purging the cache in your caching plugin—and then clearing any server/host cache or CDN cache (if you use one). After that, do a hard refresh (or test in an incognito window) to confirm your changes are visible. This guide walks you through each cache layer so the updated page finally loads.
If you’re seeing old content after editing posts, pages, theme files, or CSS, this applies right away. It’s also useful when you changed something and only some visitors can see the update.
Identify the cache layers in WordPress
Caching in WordPress isn’t a single switch—it’s a chain of systems that may each store a “recent version” of your site. The fastest fix is to purge the layer that’s actually serving the stale response right now.
– WordPress caching can exist in multiple places: a plugin, your hosting provider, and a CDN (like Cloudflare).
– Start by figuring out what’s active (look for a caching plugin and check your host control panel/CDN settings).
– Purging only one layer often won’t fix “stuck” pages.
Recognize the typical WordPress cache stack
Most “old page” problems come from one of these layers, in roughly this order of likelihood on modern sites: plugin page cache, CDN edge cache, server/host cache, then browser cache. When only some visitors see updates, that’s a strong signal that caching is happening behind a proxy/CDN or that different cache variants are being served (for example, logged-in vs logged-out views, or different user agents).
From my experience helping troubleshoot WordPress sites, the most common pattern is: you purge the plugin cache, but the CDN or host layer is still serving the cached HTML you just tried to replace—so the page looks “unchanged” even though WordPress did save your update.
Use a “freshness check” before you purge
Before you hit purge repeatedly, capture what you’re seeing:
– Open the page in incognito/private mode (no stored cookies or local cache).
– Compare logged-in vs logged-out results in the normal browser.
– If available, check response headers in DevTools (Network tab → the document request). You’re looking for caching indicators such as `Cache-Control`, `ETag`, or CDN-specific headers.
These quick checks help you confirm you have a real caching issue (stale HTML) rather than a theme/CSS compilation or deployment problem.
Cache Layers That Most Often Block Fresh Content (Typical WordPress Stack, 2025–2026)
| # | Cache layer | What it stores | Freshness payoff | Purge priority |
|---|---|---|---|---|
| 1 | Plugin page cache | Cached HTML per URL | High (★★★★★) | ★ |
| 2 | CDN edge cache | Cached HTML/CSS at POPs | High (★★★★★) | ★ |
| 3 | Host/server page cache | Reverse-proxy cached responses | Medium–High (★★★★☆) | ★★ |
| 4 | Object cache (Redis/Memcached) | DB/query results + fragments | Medium (★★★☆☆) | ★★ |
| 5 | Minified assets cache | Optimized CSS/JS bundles | Medium (★★★☆☆) | ★★ |
| 6 | Browser cache | Cached files in user device | Medium (★★★☆☆) | — |
| 7 | Theme/CDN cache-bypass rules | Selective delivery & variants | Low–Medium (★★☆☆☆) | — |
Clear cache in your caching plugin
The fastest guaranteed step is to purge the cache in your WordPress caching plugin first—because it usually targets the exact “stale HTML” you’re viewing. Then you validate the result using incognito mode or a hard refresh.
– Open your caching plugin dashboard (name will vary, e.g., ) and choose an option like Purge/Flush Cache or Delete Cache.
– If the plugin supports it, also clear page cache and minified assets (CSS/JS) because cached files can keep old styling/scripts.
– After purging, confirm changes via incognito mode or a hard refresh in your browser.
Purge page cache and minified assets (CSS/JS)
Many “it still looks old” cases aren’t about HTML—they’re about cached CSS/JS bundles. If you changed theme CSS or a page layout, you want your caching plugin to rebuild both:
1) the cached page output (HTML), and
2) the processed/minified assets (CSS/JS), if your setup combines or compresses them.
If your plugin has separate toggles for Minify, Combine, or Critical CSS, purge those outputs too. In 2025–2026, it’s also common to see plugins generate cached “preload” lists or optimization artifacts, so look for a Clear/Reset option rather than only a generic page purge.
Confirm the change correctly (hard refresh)
A normal reload often reuses cached resources. Do a hard refresh so your browser requests fresh versions from the server, or open the page in incognito mode.
If you see the update in incognito but not in your normal browser, the culprit is likely browser caching or a stale service worker (on sites using PWA features). In that case, the right move is browser-side clearing, not another server purge.
Purge host cache and object cache
If your host adds caching outside of WordPress, purging only the plugin won’t always help. Purging host-level cache removes stale responses generated before they ever reached your plugin.
– Some hosts provide extra caching in addition to WordPress plugins (often via a host-level cache toggle or button).
– If you use object caching (commonly with Redis/Memcached), clear object cache as well—otherwise dynamic content can remain outdated.
– Check your host documentation for the exact button/path (use specifics if needed).
Clear host-level cache (reverse proxy / server cache)
Host-level caching is typically implemented with mechanisms like reverse proxy caching or server-side response caching. It can store:
– full-page responses,
– partial responses,
– or pre-rendered variants.
That means your plugin purge may rebuild content inside WordPress, but the host cache still serves the old response to users.
Clear object cache when content looks “partly updated”
Object caching stores computed data (for example, query results or fragments) so WordPress doesn’t repeatedly compute the same thing. If you’re using Redis or Memcached through a plugin or host integration, stale object cache can make changes appear inconsistent—especially for widgets, menus, counts, and other dynamic sections.
According to Akamai, performance issues compound quickly with user impact: a 1-second delay can cost about 7% conversions and 11% fewer page views (2010). That’s why leaving cache layers uncleared not only risks stale content—it also increases the chance users keep retrying pages and hitting different cached variants.
Clear CDN cache (if you use Cloudflare or similar)
If a CDN sits in front of your WordPress site, it may continue serving older files from edge nodes even after you purge WordPress and your host. Clearing the CDN ensures users worldwide receive the fresh version.
– If your site uses a CDN, purge its cache too—CDNs can keep serving older versions even after plugin/host purges.
– In your CDN dashboard, look for Purge cache / Purge everything and apply it to the affected URLs or the whole site.
– After purging, re-test from multiple locations/networks to avoid local caching confusion.
Purge targeted URLs first (when possible)
Most CDNs support purging by URL pattern or specific paths. Purging just the pages you edited is typically faster for cache rebuild and reduces disruption.
After purging, test from:
– your phone on cellular,
– a home network,
– and (if possible) another region/VPN location.
This matters because CDN propagation and edge caches can update at slightly different times.
Why “some visitors updated” is a CDN clue
When only some visitors see changes, the CDN may be serving cached responses from different edge locations. Also, CDNs may vary by headers (for example, `Accept-Encoding`, user agent, or authenticated states). As of 2025–2026, “variant caching” is more common because CDNs optimize across many client types.
What can go wrong when clearing cache
Clearing cache is straightforward, but the failure modes are usually subtle. The goal is to avoid purging the wrong layer—or assuming one purge guarantees global freshness.
– Clearing cache in only one layer (plugin, host, or CDN) can leave other layers serving old content.
– Large sites can take time to rebuild cached pages—some updates may appear gradually.
– You might purge cache but still see old content due to browser caching; always test with incognito or a hard refresh.
Common mistakes that waste time
1) Purging only HTML, not assets
If you edited CSS or scripts, clear minified/combined asset caches in your caching plugin and any asset pipeline you use.
2) Purging the wrong environment
Staging vs production mismatches are common in 2025–2026 workflows. If your edits were applied to production but you purge staging (or vice versa), nothing will look right.
3) Ignoring logged-in/out differences
Many caches bypass authenticated users to avoid showing the wrong content. That’s why an update might appear for one audience and not another.
4) Assuming “Purge everything” is always best
Full-site purges can create a heavy rebuild moment. On high-traffic sites, this can temporarily increase origin load and slow responses while caches warm up.
Targeted vs full purge: what’s the trade-off?
| Approach | Pros | Cons |
|---|---|---|
| Targeted purge (URLs only) | Faster rebuild, less origin load, lower risk of cache stampedes | May miss related pages (archives, paginated views, category templates) |
| Full-site purge (“everything”) | Max freshness guarantee after major changes (theme overhaul, global CSS) | Can temporarily slow site while caches regenerate; more disruptive operationally |
According to Google (mobile site research), 53% of mobile users leave if a page takes longer than 3 seconds (2017). Cache rebuild spikes and origin strain can contribute to slowdowns, which is another reason targeted purges are often the smarter first move.
Verdict / tip (and who should skip it)
If you have a caching plugin, start there, then purge host and CDN caches only if your site is behind them. After that, use incognito mode or a hard refresh to confirm the update is truly served.
– If you have a caching plugin, start there, then purge host and CDN caches only if your site is behind them.
– Downsides: frequent full purges can increase load while caches regenerate; on busy sites, consider purging targeted pages when possible.
– Skip or be extra cautious if you’re in the middle of scheduled deployments/content freezes—repeated cache purges can mask whether changes are actually working.
A practical sequence that usually works in 2025–2026
1) Purge plugin page cache
2) Purge plugin minified assets (if you changed CSS/JS)
3) Purge host cache and object cache (Redis/Memcached) if enabled
4) Purge CDN cache (especially for global HTML/CSS updates)
5) Validate with incognito + hard refresh
If you want a quick heuristic: treat HTML freshness first, then styling/script freshness, then dynamic fragments.
Quick scan checklist (save this):
| Cache layer | What to do | Quick test |
|---|---|---|
| Plugin cache | Purge/flush/delete cache | Incognito + hard refresh |
| Minified assets | Clear CSS/JS minify caches | Check updated styles/scripts |
| Host cache | Clear host-level cache | Re-test after host purge |
| Object cache (if used) | Clear object cache | Dynamic content updates |
| CDN cache | Purge CDN cache | Test from another network |
Frequently Asked Questions
How do I clear the cache in WordPress when my site changes aren’t showing?
First, clear the cache in any caching plugin you use (like WP Super Cache, W3 Total Cache, or LiteSpeed Cache) from the plugin’s settings page. Then clear your browser cache and do a hard refresh (Ctrl+F5 / Cmd+Shift+R) to ensure you’re not seeing a locally cached version. If you have a CDN such as Cloudflare, purge the CDN cache as well to force WordPress to deliver the updated pages.
How can I clear WordPress cache using a caching plugin?
Open your WordPress dashboard and go to the caching plugin menu (for example, “WP Rocket,” “LiteSpeed Cache,” or “WP Fastest Cache”). Look for options like “Clear Cache,” “Purge All,” or “Delete Cache” and run it after making changes to posts or theme files. If your plugin has an “Empty Cache” button, use that to remove stored pages and regenerate fresh cache.
Why does WordPress keep showing old content after I publish changes?
WordPress pages and assets can be stored by server-side caching, page caching plugins, and CDN edge caching, so your visitor may still receive a cached version. Another common cause is caching for logged-in users or cached HTML fragments that aren’t invalidated after edits. Clearing the WordPress cache and purging any CDN cache typically resolves “old content” issues.
What’s the best way to clear cache in WordPress for sites using a CDN like Cloudflare?
After clearing your WordPress cache plugin, log into Cloudflare and run a “Purge Cache” (often “Purge Everything” for broad updates). For better control, you can also purge by URL if you only changed specific pages. This ensures both WordPress and Cloudflare deliver the latest content without waiting for cache expiration.
Which steps should I follow to clear cache in WordPress when I’m using managed hosting (like WP Engine or Kinsta)?
Start by clearing the cache within your WordPress caching plugin if one is installed, then check your host’s dashboard for a “Purge Cache,” “Clear Cache,” or “Flush” option. Managed hosts often maintain an additional layer of caching at the server level, so clearing only the WordPress plugin cache may not be enough. After purging, test the page in an incognito window and verify that the updated content appears.
📅 Last Updated: November 19, 2026 | Topic: how to clear cache in wordpress | Content verified for accuracy and freshness.
References
- wp_cache_flush() – Function | Developer.WordPress.org
- wp_cache_delete() – Function | Developer.WordPress.org
- Transients – Common APIs Handbook | Developer.WordPress.org
- delete_transient() – Function | Developer.WordPress.org
- delete_site_transient() – Function | Developer.WordPress.org
- PHP: opcache_reset – Manual
- https://scholar.google.com/scholar?q=how+to+clear+cache+in+wordpress Google Scholar
- https://scholar.google.com/scholar?q=wordpress+object+cache+wp_cache_flush Google Scholar
- https://scholar.google.com/scholar?q=wordpress+page+cache+purg*ing+cache Google Scholar
