How to Purge LiteSpeed Cache in WordPress (Every Method Explained)

To purge LiteSpeed Cache in WordPress, hover over the LiteSpeed diamond icon in the admin toolbar and click Purge All. To clear only one page, open that page while logged in and choose Purge this page – LSCache from the same menu. For anything more specific, go to LiteSpeed Cache → Toolbox → [1] Purge.

This guide shows each method with real screenshots from this site, explains what every purge button actually clears, and what to do when old content still shows after a purge.

Title card reading how to purge LiteSpeed Cache beside a dropdown menu with Purge All highlighted
Warning: In the WordPress dashboard, clicking the LiteSpeed icon itself runs Purge All – LSCache straight away. Hover over it to open the menu instead. (On the front end of the site, clicking it opens the LiteSpeed dashboard.)

How I worked this out: the screenshots come from this site’s dashboard on 23 October 2026 (LiteSpeed Cache 7.9.2). The descriptions of what each button clears come from the plugin’s own text, LiteSpeed’s documentation and the 7.9.2 source code. I have used Purge All on this site after publishing changes; I did not press Empty Entire Cache for this guide.

Key takeaways

  • Purge All clears the page cache and CSS/JS files, plus the object cache and OPcache if you use them. It keeps Critical CSS, Unique CSS, LQIP, VPI and Gravatar files.
  • Purge All – LSCache clears only cached pages, which is usually all you need after a content change.
  • Empty Entire Cache clears everything in the server cache for this site, including other web apps on it; LiteSpeed says to use it only when things are cached incorrectly.
  • A purge does not clear your browser, and it may not clear a CDN. Test in a private window, and clear the CDN in its own dashboard if old content persists.
  • LiteSpeed Cache already purges the post and related pages automatically when you publish or update it.
Table of Contents
  1. 1What a Purge Actually Clears
  2. 2Method 1: The Admin Toolbar (Fastest)
  3. 3Method 2: The Toolbox Purge Tab (Most Control)
  4. Purge specific URLs or posts
  5. 4Method 3: WP-CLI (for Developers)
  6. 5You Often Don’t Need to Purge at All
  7. 6Still Seeing Old Content After a Purge?
  8. 7Which Purge Do I Need?
  9. 8Frequently Asked Questions
  10. How do I clear LiteSpeed Cache in WordPress?
  11. What is the difference between Purge All and Purge All – LSCache?
  12. Is Empty Entire Cache safe?
  13. Does purging LiteSpeed Cache clear Cloudflare?
  14. How do I purge one page in LiteSpeed Cache?
  15. Can I purge LiteSpeed Cache from the command line?

What a Purge Actually Clears

LiteSpeed Cache keeps several different caches. Knowing which one is stale tells you which button to press, and avoids clearing more than you need.

Table of LiteSpeed Cache layers (page cache, CSS/JS files, object cache, OPcache, critical and unique CSS and other generated files, CDN copies, browser) and whether Purge All - LSCache or Purge All clears each
Purge All covers most layers, but not Critical CSS, Unique CSS and other generated files, static files held by a CDN, or your browser.

Method 1: The Admin Toolbar (Fastest)

When you are logged in as an administrator, a LiteSpeed diamond icon appears in the black toolbar at the top of the screen. Hover over it to open this menu:

Screenshot of the LiteSpeed Cache toolbar menu in WordPress showing Manage, Settings, Image Optimization, Purge All and the individual Purge All options
The LiteSpeed toolbar menu on this site, LiteSpeed Cache 7.9.2, 23 October 2026.
  • Purge All: the broad clear-out (see the table below for exactly what it covers).
  • Purge All – LSCache: cached pages only.
  • Purge All – CSS/JS Cache: the minified CSS and JavaScript files the plugin creates, plus all cached pages so they rebuild with the new files.
  • Purge All – Object Cache and Opcode Cache: shown when those caches are in use.
  • CCSS, UCSS, VPI, Gravatar: generated files for features you have switched on.

On the front end of your site the same menu also offers Purge this page – LSCache, the quickest way to refresh a single post after an edit.

Method 2: The Toolbox Purge Tab (Most Control)

Go to LiteSpeed Cache → Toolbox and open the [1] Purge tab. Each button describes what it removes:

Screenshot of the LiteSpeed Cache Toolbox Purge tab showing buttons for front page, pages, error pages, LSCache, CSS/JS, object, opcode, critical CSS, unique CSS, VPI, Gravatar, Purge All and Empty Entire Cache
Toolbox → [1] Purge on this site, 23 October 2026. Tap to open full size.
ButtonWhat it clearsUse it when
Purge Front Page / Purge PagesOnly the home page, or only PagesOnly the home page or a static Page shows old content
Purge 403 / 404 / 500 ErrorCached error pagesYou fixed a broken page that was cached as an error
Purge All – LSCacheAll cached pages created by the pluginMost content or design changes
Purge All – CSS/JS CacheMinified/combined CSS/JS files, and all cached pages so they rebuild with the new filesYou changed theme CSS or a script while CSS/JS minify or combine is on
Purge AllPage cache, CSS/JS, localized resources, and the object cache and OPcache if in use (plus Cloudflare if set up). Not Critical CSS, Unique CSS, LQIP, VPI or Gravatar.After plugin or theme updates, or when unsure
Empty Entire CacheEverything in the server’s cache for this site, including other web appsOnly if pages are cached incorrectly and Purge All did not help
From the LiteSpeed Cache 7.9.2 Toolbox screen and source code, 23 October 2026.

Purge All leaves Critical CSS, Unique CSS and LQIP alone on purpose: those files are generated by QUIC.cloud and cost credits to rebuild. The button’s own description lists only those three, but in the 7.9.2 code Purge All does not touch VPI or Gravatar files either. Each has its own button if you really need it gone.

Warning: Empty Entire Cache asks for confirmation and warns that it “may cause heavy load on the server”. If only your WordPress site needs refreshing, use Purge All.

Purge specific URLs or posts

At the bottom of the same tab, Purge By… lets you choose Category, Post ID, Tag or URL, enter one item per line and click Purge List. Here categories and tags are entered by slug (for example category-name), while WP-CLI below uses IDs. This only clears cached pages, which makes it ideal for fixing one stubborn URL without touching the rest of the site.

Method 3: WP-CLI (for Developers)

If you have SSH access, LiteSpeed Cache adds a litespeed-purge command to WP-CLI:

wp litespeed-purge all
wp litespeed-purge url https://example.com/sample-post/
wp litespeed-purge post_id 12 34
wp litespeed-purge category 3

Category and tag purges take IDs, not slugs. On a multisite network, all behaves like Empty Entire Cache.

You Often Don’t Need to Purge at All

LiteSpeed already purges related pages when you publish or update a post. By default it clears the front page, home page, pages, pages with a Recent Posts widget, and the author, monthly, category/tag and post-type archives. It also purges everything when you switch theme or change a menu. You can review these rules in Cache → [3] Purge; my LiteSpeed Cache settings guide explains the ones this site uses.

Two settings on the same tab are worth knowing. Purge All On Upgrade is off by default, so a plugin update does not trigger Purge All. Serve Stale is also off by default; the setting’s own description says “By design, this option may serve stale content.”

Still Seeing Old Content After a Purge?

  • Your browser. It may be showing its own saved copy. Test in a private window.
  • A CDN in front of the site. Cloudflare is only cleared by Purge All if the Cloudflare API is set up in LiteSpeed and Clear Cloudflare cache is switched on (it is off by default). Other CDNs work in their own way, so check yours. On this site, Hostinger‘s CDN once kept an old copy of a text file after a WordPress purge until the CDN cache was cleared in hPanel; I describe it in my llms.txt guide.
  • Check the header. After a purge, the first logged-out request should show x-litespeed-cache: miss and the next one hit (it can already be a hit if LiteSpeed’s crawler re-cached the page first). If it never changes, see my guide to that header.

After Purge All, LiteSpeed confirms with “Purged all caches successfully.” Cached pages and any minified CSS/JS files are rebuilt the next time each page is visited, so the first visit to each page can be a little slower.

If you use a separate optimization plugin such as Perfmatters, remember it has no page cache of its own, so LiteSpeed’s purge is still the one that matters.

Which Purge Do I Need?

Decision chart matching common situations (edited a post, changed a widget or design, changed CSS, updated a plugin, cached wrongly, still old) to the right LiteSpeed purge option
  • Edited one post or page → Purge this page – LSCache (or nothing: auto-purge usually handles it).
  • Changed a widget, a Customizer setting or the design → Purge All – LSCache (menu changes purge automatically).
  • Changed CSS or JavaScript with CSS/JS minify or combine on → Purge All – CSS/JS Cache, then check the page. With those off, Purge All – LSCache is enough.
  • Updated a plugin or theme, or not sure → Purge All.
  • Pages are cached wrongly even after Purge All → Empty Entire Cache, as a last resort.
  • Still old → clear your browser and your CDN.

Frequently Asked Questions

How do I clear LiteSpeed Cache in WordPress?

Hover over the LiteSpeed icon in the admin toolbar and click Purge All, or go to LiteSpeed Cache → Toolbox → Purge for more specific options.

What is the difference between Purge All and Purge All – LSCache?

Purge All – LSCache clears only cached pages. Purge All also clears CSS/JS files, localized resources, and the object cache and OPcache if you use them, but keeps Critical CSS, Unique CSS, LQIP, VPI and Gravatar files.

Is Empty Entire Cache safe?

It clears everything in the server’s cache for the site, including other web applications, and LiteSpeed warns it may cause heavy load. Use it only when Purge All has not fixed incorrectly cached pages.

Does purging LiteSpeed Cache clear Cloudflare?

Only if the Cloudflare API is configured in LiteSpeed Cache and Clear Cloudflare cache is switched on. Other CDNs need to be cleared in their own dashboards.

How do I purge one page in LiteSpeed Cache?

Open the page while logged in and choose Purge this page – LSCache from the toolbar menu, or use Toolbox → Purge → Purge By… with the page URL.

Can I purge LiteSpeed Cache from the command line?

Yes. With WP-CLI, run wp litespeed-purge all, or purge a single URL with wp litespeed-purge url followed by the address.

Harshil Barot
About the author
Digital Marketing Strategist & SEO Specialist

Harshil Barot is a digital marketing strategist focused on SEO, website growth and lead generation. He has built websites since 2012 and provided digital marketing services since 2016. His reviews of web hosting, WordPress, SEO and AI tools state whether they draw on personal use, hands-on testing or editorial research.

Share

Leave a Comment