How to Clear WordPress Cache (2026): Every Layer, 10 Plugins Tested

How to clear WordPress cache: WP-Optimize Purge cache menu from my test site, then MISS to HIT

Disclosure: some links in this article (WP Rocket and FlyingPress) are affiliate links; read our affiliate disclosure. Every plugin screen and header in this guide comes from my own test server; host and LiteSpeed steps come from their official docs.

To clear WordPress cache, purge each layer from the inside out: the object cache (Redis), any CSS/JS file cache, the page cache in your cache plugin, the server or host cache, then the CDN (Cloudflare), and finally your own browser with a hard reload. Most cache plugins clear the CSS/JS files and the page cache with one button in the admin bar.

  1. Flush the object cache (Redis or Memcached), if your site uses one.
  2. Clear minified CSS/JS files (Autoptimize, Elementor CSS) if you changed design files.
  3. Purge the page cache in your cache plugin, ideally with its purge and preload button.
  4. Clear the server or hosting cache (Nginx FastCGI, Varnish, your host’s panel).
  5. Purge Cloudflare or your CDN, then hard-reload the page (Ctrl+Shift+R).

I installed ten cache plugins (plus Autoptimize) one at a time on the same Nginx test site in November 2026 and photographed where each one hides its purge button. Below you get those real screens, the order that avoids broken pages, how to clear Redis, Cloudflare, your host and your browser, and how to prove from the response headers that the cache really was cleared.

Tested: WP Rocket 3.24, FlyingPress 5.6.7, WP Super Cache, W3 Total Cache, WP Fastest Cache, Autoptimize, Super Page Cache 5.3.10, Jetpack Boost 4.8.2, WP-Optimize, NitroPack 1.20.4 (free plan) and xSpeed Cache 1.4.7 + Pro 1.3.8, one at a time, on WordPress 7.1.4 with the Kadence theme, Nginx on an aaPanel VPS in Hong Kong, Cloudflare proxied. Headers and TTFB measured with curl from Dhaka, November 8-12, 2026. Tested by Dolon Bepari. Method: how we test cache plugins.

WordPress cache layers: what to clear and where

“WordPress cache” is not one thing. A normal site has up to six caches, each stored in a different place, and clearing one does not touch the others. This is why “I cleared the cache and nothing changed” is so common.

LayerWhat it storesWhere to clear itHow to check it worked
Object cache (Redis, Memcached)Database query results, options, menusYour cache plugin’s object cache button, or wp cache flushKey count drops in redis-cli INFO keyspace
Asset cache (minify, combine, CSS files)Minified/combined CSS and JS, Elementor CSSAutoptimize, WP Rocket, Elementor ToolsNew file names in the page source
Page cache (your cache plugin)Finished HTML pagesPlugin’s admin bar menu or dashboardHeader shows MISS, then HIT
Server or host cacheHTML at the web server (Nginx FastCGI, Varnish, host)Host panel, Nginx Helper, host pluginHost header changes (e.g. x-cache)
CDN or edge (Cloudflare)HTML and files at data centers near visitorsCloudflare dashboard or your plugin’s Cloudflare integrationcf-cache-status MISS, then HIT
BrowserFiles on the visitor’s own computerHard reload or clear browsing dataPrivate window shows the new version

Clear the cache after you edit content, change CSS or the theme, update plugins, or move the site. Don’t clear it on a timer for speed: a full cache is what makes the site fast.

If you want the detective version (you changed something and don’t know which layer is serving the old copy), use my guide to finding a stale cache when WordPress changes are not showing. This guide is the reference for where each button is and what it actually clears.

The right order to clear WordPress cache (and why it matters)

Clear from the inside out: object cache, asset files, page cache, server cache, CDN, browser. Each outer layer rebuilds itself from the layer inside it. If you purge Cloudflare first and the page cache second, Cloudflare can re-cache the old HTML in the seconds between the two clicks.

Asset files need to go before the page cache for a similar reason. A cached HTML page points to specific CSS and JS file names. If you delete those files but keep the cached page, visitors get a page that asks for files that no longer exist, and the design breaks. I hit a version of this with Jetpack Boost and Cloudflare (details in the Cloudflare section below): the CSS files existed on my server, but Cloudflare had stored a 404 for them.

Most cache plugins already do steps 2-3 together, and the ones with their own Cloudflare connection (FlyingPress, Super Page Cache) manage the edge copy too. So in practice: one plugin button, then a hard reload, covers most sites.

How to clear cache in each WordPress cache plugin (10 tested)

Every screenshot below is from my test site. Almost all plugins put the purge button in the black admin bar at the top of the screen, which also works from the front end of your site. Most also offer a this page only purge, which is gentler than purging everything after a small edit.

WP Rocket

In WP Rocket, hover WP Rocket in the admin bar and click Clear and Preload Cache. The same menu has Clear Used CSS (for its Remove Unused CSS feature) and Clear Priority Elements. WP Rocket rebuilds the cache right after, so the next visitor doesn’t land on a cold page.

WP Rocket admin bar menu with Clear and Preload Cache, Clear Used CSS and Clear Priority Elements

More: my WP Rocket settings guide.

FlyingPress

FlyingPress has three admin bar items: Purge Current Page, Preload Cache, and Purge and Preload Cache. Use the first after editing one post and the last after a design change. If you turned on its Cloudflare page caching, FlyingPress creates its own Cloudflare cache rules too.

FlyingPress admin bar menu with Purge Current Page, Preload Cache and Purge and Preload Cache

WP Super Cache

Go to Settings > WP Super Cache > Contents and click Delete Cache. Delete Expired only removes files older than the cache timeout. The Contents tab also shows how many cached pages exist, which is a quick sanity check that caching works at all.

WP Super Cache Contents tab with the Delete Cache and Delete Expired buttons

W3 Total Cache

Open Performance > Dashboard and use Empty All Caches (the dropdown next to it can empty a single cache type). The Performance item in the admin bar has the same options.

W3 Total Cache dashboard with the Empty All Caches button

WP Fastest Cache

Go to WP Fastest Cache > Clear Cache. Clear All Cache deletes cached pages; Clear Cache and Minified CSS/JS also removes its minified files, which is the one to use after editing theme CSS. The same tab lets you set timeout rules for automatic clearing.

WP Fastest Cache Clear Cache tab with Clear All Cache and Clear Cache and Minified CSS/JS buttons

Super Page Cache

Hover Super Page Cache in the admin bar: Purge whole cache or Purge cache for this page only. If you connected it to Cloudflare, it caches pages at the edge through its own Cache Rule.

Super Page Cache admin bar menu with Purge whole cache and Purge cache for this page only

Jetpack Boost

Go to Jetpack > Boost; under Cache Site Pages click Clear cache. If you use Concatenate CSS or JS, read the Cloudflare section below before you purge: that is where Boost bit me.

Jetpack Boost Cache Site Pages setting with the Clear cache button

WP-Optimize

The admin bar Purge cache menu shows the cache size and offers Purge cache for all pages, Purge cache for this page and Purge minify cache. Preloading after a purge was on by default in my test, so the cache refilled on its own.

WP-Optimize admin bar menu to purge the page cache for all pages or this page and purge the minify cache

NitroPack

Click Purge cache in the NitroPack plugin dashboard and confirm Purge cache now. NitroPack warns that it needs a few minutes to re-optimize. In my single test on the free plan, the page answered x-nitro-cache: MISS right after the purge and was back to HIT about 15 minutes later, so don’t purge NitroPack casually on a busy site.

NitroPack purge cache modal warning that re-optimizing takes a few minutes

xSpeed Cache

xSpeed has the longest menu: Purge All, Purge this URL, and separate purges for page/static cache, CSS/JS, object cache, REST responses, Critical CSS and Unused CSS. In Posts > All Posts each row also gets a Purge cache link. With its Nginx snippet installed, pages come straight from disk (x-xspeed-cache: HIT (nginx)), and the purge buttons are still in the plugin, not in the server config.

xSpeed Cache purge options in the WordPress admin bar

Autoptimize (CSS/JS cache only)

Autoptimize has no page cache, so its Clear CSS/ JS Cache button (admin bar) only deletes its optimized files. Purge your page cache right after it, so cached pages don’t keep pointing at files that were just deleted.

Autoptimize admin bar menu with the Clear CSS/ JS Cache button

Comparing these plugins rather than just clearing them? See my best WordPress cache plugins test of all ten on one server.

How to clear LiteSpeed Cache

LiteSpeed Cache is the one big plugin I couldn’t test: its page cache needs a LiteSpeed web server, and my test server runs Nginx. Per the LiteSpeed Cache docs (checked November 2026), go to LiteSpeed Cache > Toolbox > Purge and click Purge All – LSCache (page cache only) or Purge All (every LiteSpeed cache, including CSS/JS and OPcache). The LiteSpeed icon in the admin bar offers Purge this page – LSCache for the current page. Over SSH, wp litespeed-purge all does the same as Purge All. Hostinger and many other LiteSpeed hosts use this plugin as their main cache.

How to clear the object cache (Redis or Memcached)

Clear the object cache when a menu, widget, option or price stays old even while you are logged in, because logged-in admins skip the page cache but not the object cache. Use the button your cache plugin gives you (FlyingPress, W3 Total Cache, xSpeed and the Redis Object Cache plugin all have one) or run wp cache flush over SSH.

Know what that flush hits. wp cache flush empties the whole object cache your site is connected to, and with Redis that normally means the entire Redis database the site uses. If two sites share one database, one flush clears both.

On my server each site has its own Redis database, and I tested it: after clicking Purge Object Cache in WebPickr’s FlyingPress, database 6 (webpickr.com) went from 478 keys to 47, which were new keys written by requests right after the purge. Database 3, another of my sites, went from 16,715 to 16,713 keys, which is just normal expiry. The full setup is in my aaPanel Redis object cache guide.

Redis keyspace before and after a FlyingPress purge, database 6 cleared and database 3 unchanged

Two things that often get missed: wp cache flush does not clear your page cache, and without Redis or Memcached it does almost nothing, because WordPress’s default object cache only lives for a single request. Never run Redis’s FLUSHALL on a shared server: it wipes every database, including other sites and apps.

How to clear server and hosting cache (Nginx, GoDaddy, SiteGround and others)

Clear it from your host’s panel or plugin: many hosts run their own server cache in front of WordPress, and your cache plugin can’t reach it. These steps come from each host’s official documentation (checked November 2026); I don’t host test sites with them, so there are no screenshots:

HostWhere to clear the server cache
GoDaddy (Managed WordPress)In WordPress: GoDaddy Quick Links > Flush Cache. In your GoDaddy account: Managed Hosting for WordPress > your site > Settings > Tools > Flush Now (GoDaddy help)
SiteGroundSpeed Optimizer plugin: Caching > Manual Cache Purge > Purge Cache, or Purge SG Cache in the admin bar. Site Tools: Speed > Caching > Dynamic Cache > Flush Cache icon (SiteGround KB)
BluehostBluehost portal: Websites > Manage Site > Performance > Clear cache > Clear all cache; or in WordPress, Bluehost > Settings > Performance (Bluehost help)
HostingerhPanel: Websites > Manage site > Clear cache, or WordPress > Overview > Flush Cache; the CDN has its own Flush cache under Performance > CDN (Hostinger help)
KinstaMyKinsta: Sites > your site > Caching > Server Caching > Clear cache, or the cache link Kinsta’s MU plugin adds to the WordPress toolbar (Kinsta docs)
WP EngineUser Portal: your environment > Cache > Clear all caches, or in WordPress: WP Engine > Caching > Clear All Caches. This doesn’t flush the object cache (WP Engine support)
WordPress.comSite Settings > Server > Caching > Clear all next to “Clear all caches” (paid plans); clears the edge and object cache (WordPress.com support)

Nginx FastCGI cache on your own server

If you run your own VPS with Nginx’s FastCGI cache, open-source Nginx has no purge button: the nginx docs list fastcgi_cache_purge as a commercial (NGINX Plus) feature. The usual WordPress answer is the free Nginx Helper plugin, which adds Purge Cache to the admin bar and can purge either through the ngx_cache_purge module or by deleting files from the cache folder. My own test server doesn’t use FastCGI cache; the plugins did the page caching, which is also why their purge buttons were enough there. More on that setup: best cache plugin for Nginx.

How to clear Cloudflare cache

In the Cloudflare dashboard, open your domain, go to Caching > Configuration and use Custom Purge (specific URLs) or Purge Everything. Every plan, including Free, can purge single URLs or everything (per Cloudflare’s docs). Cloudflare itself warns that purging can temporarily slow the site and load your server, because every file has to be fetched from your origin again.

Cloudflare Caching Configuration page with Purge Everything and Custom Purge options

By default Cloudflare does not cache your HTML at all (cf-cache-status: DYNAMIC), only static files, so for most sites a CSS or image change is the reason to purge it. If a plugin set up HTML caching at the edge (Super Page Cache, FlyingPress, or Cloudflare APO), purge through that plugin first, because it knows which edge rules it created. What each status means is in my cf-cache-status explained guide.

The Cloudflare trap I hit: a cached 404

With Jetpack Boost’s Concatenate CSS turned on, my test page suddenly lost its whole design. The two combined CSS files existed on the server, but Cloudflare answered 404 (and called it a HIT). The timestamps suggest the first request for each file arrived in the same second the file was being written, Boost returned a 404 with a one-year Cache-Control: max-age=31536000 header, and Cloudflare stored that 404.

Turning Concatenate CSS off didn’t help either, because a combined JS file had been cached as a 404 too. Only Purge Everything in Cloudflare, run after the files were generated, brought the design back. The lesson: after any change that creates new CSS/JS files, purge the CDN last, and give the plugin a minute to finish writing.

How to clear Elementor cache

Elementor writes your design to CSS files and keeps some data it can rebuild. If your changes don’t show after editing in Elementor, go to Elementor > Tools and click Clear Files & Data (older versions call it Regenerate CSS & Data), then save and purge your page cache. Per Elementor’s help, you can also open Edit with Elementor in the admin bar and choose Clear Cache. Elementor’s separate Element Cache (off by default) clears itself on the schedule you set under Settings > Performance. Because these are CSS files, this step belongs before the page cache and Cloudflare in the order above.

How to clear WordPress cache without a plugin

If the plugin’s dashboard is broken or the plugin is gone, you can still clear every layer by hand:

  • Object cache: wp cache flush over SSH (WP-CLI). It only flushes the object cache. wp transient delete --all deletes all transients, the temporary data plugins such as WooCommerce store in the database.
  • Plugin cache by command: W3 Total Cache has wp w3-total-cache flush all built in; FlyingPress has wp flying-press purge-everything; LiteSpeed has wp litespeed-purge all; SiteGround has wp sg purge. WP Rocket (wp rocket clean --confirm) and WP Super Cache (wp super-cache flush) need an extra WP-CLI package first.
  • Page cache files: with your host’s File Manager or SFTP, empty the plugin’s folder inside wp-content/cache/ (for example cache/flying-press or cache/supercache).
  • Server, Cloudflare and browser: your host’s panel, the Cloudflare dashboard and a hard reload, as described in the sections above and below.

Delete only the contents of cache folders. Don’t delete advanced-cache.php, object-cache.php or a plugin’s config folder while the plugin is active: that switches caching off or breaks it until the plugin rewrites them. If you are removing a cache plugin for good, my advanced-cache.php guide lists what each plugin left behind on my server.

How to clear your browser cache

In Chrome, Edge and Firefox press Ctrl+Shift+R (or Shift+F5) on Windows and Linux, Cmd+Shift+R on a Mac, to reload the page while ignoring the cached copy (Chrome help). To check without touching your cache at all, open the page in a private window: that is also how a logged-out visitor sees it, because most cache plugins skip logged-in admins.

Clear the browser last. If you hard-reload before purging the server and CDN, you just download the old version again.

After clearing: confirm it worked, then preload

Don’t trust the success message; check the response header in a logged-out window or with curl (curl -s -o NUL -D - https://yoursite.com/page/ on Windows, -o /dev/null on Mac/Linux). Right after a purge the first request should say MISS (or the plugin’s equivalent), and the second HIT. With WP-Optimize the header changed from wpo-cache-status: saving to cache to cached on the next request:

curl headers showing wpo-cache-status saving to cache on the first request and cached on the second
Plugin or layerHeader to look for (from my test)
FlyingPressx-flying-press-cache: HIT
WP-Optimizewpo-cache-status: cached
Jetpack Boostx-jetpack-boost-cache: hit
Super Page Cache (disk)x-wp-spc-disk-cache: HIT
NitroPackx-nitro-cache: HIT
xSpeed Cachex-xspeed-cache: HIT (php) or HIT (nginx)
Cloudflarecf-cache-status: HIT / MISS / DYNAMIC

More checks, including the page source footprint and Redis, are in how to check if WordPress cache is working.

Then preload. A purged page is slow for the first visitor who asks for it, because WordPress has to build it again. On my test page, an uncached request took 0.684 s (no cache plugin, TTFB median of five curl runs from Dhaka), the same page from Super Page Cache’s disk cache 0.289 s, and from Cloudflare’s edge 0.136 s. The first visitor after a purge can get something close to the uncached number. WP Rocket’s Clear and Preload Cache, FlyingPress’s Purge and Preload Cache and WP-Optimize’s automatic preload fix this by visiting your pages for you; for TTFB more broadly see how to reduce TTFB in WordPress.

Cleared every layer and still see the old page? Then it’s probably not a cache problem at all (a CDN rule, a CSS file loaded from somewhere else, or an edit that never saved). My changes not showing guide walks through those cases.

FAQ

Should I clear the WordPress cache?

Clear it when you change something visitors should see right away: after editing a page, changing CSS or the theme, updating plugins, or moving the site. Don’t clear it on a schedule for speed. A full cache is what makes the site fast, and every purge makes the next visitors wait while pages are rebuilt.

Is it safe to clear the cache on WordPress?

Yes. Clearing the cache deletes only temporary copies, never your posts, pages, settings or media. The worst normal side effect is a slower first load while the cache refills. The real risks come from deleting files by hand, such as advanced-cache.php, or flushing a Redis server that other sites share.

How do I clear cache in WordPress without a plugin?

Use WP-CLI (wp cache flush clears the object cache), empty the contents of wp-content/cache with your host’s file manager, clear the server cache in your host’s panel, purge Cloudflare in its dashboard, and hard-reload your browser with Ctrl+Shift+R (Cmd+Shift+R on a Mac).

What does flush cache do in WordPress?

Flushing deletes the stored copies in one cache layer so the next request builds fresh ones. wp cache flush, for example, empties the object cache (Redis or Memcached). It does not clear page cache files, Cloudflare or your browser; each layer has its own purge.

How do I flush the cache for a website?

Purge each layer in order: your cache plugin’s Purge All (or wp cache flush for the object cache), your host’s server cache, then Cloudflare or your CDN, then hard-reload the browser. On most WordPress sites one plugin button plus a hard reload is enough.

How do I know if the WordPress cache was cleared?

Check the response headers in a private window or with curl. Right after a purge the first request should show MISS (for example cf-cache-status: MISS or wpo-cache-status: saving to cache) and the next one HIT. If it shows HIT immediately, a layer you didn’t purge is still serving the old copy.

Why does my site look broken after clearing the cache?

Usually cached HTML still points to CSS or JS files that were deleted or regenerated, or a CDN stored an error for a new file. Clear in order: CSS/JS files, then the page cache, then Cloudflare. In my test, two Jetpack Boost combined CSS files stayed broken until I used Purge Everything in Cloudflare.

Related Guides