Skip to main content
Support Hours: 24/7 (technical team 11 AM to 8 PM PKT)WhatsApp: +92 313 2946143
WordPress
3 min read
Updated on 2026-10-07

How to Clear LiteSpeed Cache in WordPress

Clear server-level LiteSpeed page cache, CSS/JS minify buffers, and object cache to ensure recent website edits display immediately.

Why Clear LiteSpeed Cache?

LiteSpeed Web Server stores pre-rendered HTML copies of your web pages in server memory to achieve ultra-fast load times. When you edit a page, update a plugin, or tweak CSS styling, visitors may continue to see the older cached version until the cache is purged. Every WordPress hosting plan in Pakistan at Alif Host runs on LiteSpeed Web Server, so the LiteSpeed Cache plugin works out of the box.

Purging from the WordPress Admin Bar

The fastest method is using the LiteSpeed icon at the top of your WordPress dashboard:

  1. 1Log in to your WordPress dashboard (yourdomain.com/wp-admin).
  2. 2Hover your mouse over the LiteSpeed diamond icon in the top black admin bar.
  3. 3Click Purge All from the dropdown menu.
  4. 4A green notification will confirm that the entire cache has been successfully flushed.

Purging a Specific Page Only

If you only made changes to a single blog post or product page, navigate to that page on the front end while logged in as an administrator. Hover over the LiteSpeed icon and choose Purge - This Page. This preserves the cached copies of your other pages while refreshing the updated URL.

If you still see the old version after purging LiteSpeed Cache, perform a hard refresh in your browser using Ctrl + F5 (Windows) or Cmd + Shift + R (Mac) to bypass local browser cache.

Clearing Cache via cPanel LiteSpeed Web Cache Manager

If your website uses custom PHP, Laravel, or if you cannot log in to your WordPress administrative dashboard, clear cache directly at the server level in cPanel:

  1. 1Log in to cPanel and navigate to the Advanced section.
  2. 2Click on "LiteSpeed Web Cache Manager".
  3. 3Scroll down to the "Flush LSCache" section.
  4. 4Click the "Flush All" button to purge the entire server-level cache for your account.
  5. 5Alternatively, under "WordPress Cache", you can scan your document roots and flush individual installations independently.

Flushing PHP OPcache and Distinguishing Cache Layers

When diagnosing why website updates fail to appear, it is essential to distinguish between the three primary caching tiers:

  1. 1Server-Level Page Cache (LiteSpeed): Stores pre-compiled static HTML snapshots in server RAM. Flushed via the LiteSpeed WordPress plugin or cPanel LiteSpeed Web Cache Manager.
  2. 2PHP Bytecode Cache (OPcache): Stores pre-compiled PHP opcode to accelerate script execution. If code edits in File Manager do not execute, navigate to cPanel MultiPHP Manager and momentarily re-apply your PHP version to restart your PHP-FPM pool.
  3. 3Client Browser and CDN Cache: Web browsers and edge CDNs (like Cloudflare) store CSS, JavaScript, and image assets locally. Always perform a hard refresh using Ctrl + F5 or clear your Cloudflare development cache to verify live changes.
Flushing server cache clears temporary memory copies safely. It never deletes website files, database records, or uploaded images.
Still Need Help?

Speak Directly with Our Technical Team

Our engineering team is on standby 24/7, with the technical team online 11 AM to 8 PM PKT, via WhatsApp and our customer portal ticket system.