How to Manage LiteSpeed Cache Purge Tags and the LSCache Crawler

34 views
Short answer: Click LiteSpeed diamond icon in WordPress admin bar and select 'Purge All' to refresh entire cache, or inspect HTTP response headers for x-litespeed-cache hits.

Resolve stale content issues, understand granular cache purges, and automate cache pre-warming using the LiteSpeed Crawler.

Quick reference

cPanel Plugin cPanel > Advanced > LiteSpeed Web Cache Manager
WordPress Admin Bar LiteSpeed icon > Purge All - LSCache
Crawler Function Visits un-cached pages automatically to create static HTML cache

Steps

  1. Purge Cache from WordPress Admin:
    • Hover over the LiteSpeed diamond icon in the top WordPress admin bar.
    • Click Purge All - LSCache.
    • If testing WooCommerce products, click Purge All - Object Cache.
  2. Purge from cPanel (When WordPress is Inaccessible):
    • In cPanel, go to Advanced > LiteSpeed Web Cache Manager.
    • Scroll down to WordPress Cache and click Flush All.
  3. Configure the LSCache Crawler:
    • In your WordPress dashboard, go to LiteSpeed Cache > Crawler > General Settings.
    • Toggle Crawler to ON.
    • Under Sitemap Settings, enter your XML sitemap URL (e.g. https://yourdomain.com/sitemap_index.xml).
    • The crawler runs periodically in the background, rendering and caching pages so first-time visitors always get sub-second page loads.

Troubleshooting and tips

  • Stale CSS or JavaScript Still Serving: Your browser might be serving locally cached static assets. Press Ctrl + Shift + R (Windows) or Cmd + Shift + R (Mac) to hard-refresh.
  • Cart or Checkout Being Cached: By default, LiteSpeed Cache automatically excludes WooCommerce cart and checkout pages. If customers see other visitors' carts, check LiteSpeed Cache > Page Optimization > Tuning > Do Not Cache URIs to ensure /cart/ and /checkout/ are excluded.
Need more help? If you run into an error while following these steps, open a ticket with technical support and our team will look into it. Open a ticket
Was this article helpful?
No, I need more help
Didn't find your answer?
Under 3 minutes
Submit Support Ticket