Most WordPress cache plugins store static files on disk and hope PHP never gets involved. The LiteSpeed Cache WordPress plugin — LSCache — works differently: it talks directly to the LiteSpeed web server, which stores and serves cached pages before PHP is even started. The result is measurably lower TTFB, automatic cache purging by tag, ESI fragments for dynamic widgets, and a crawler that keeps the cache warm. This complete guide configures the LiteSpeed Cache WordPress plugin properly, section by section: page cache, Redis object cache, ESI, WebP image optimization, page optimization, and QUIC.cloud CDN.
How LSCache Differs from Other Cache Plugins – LiteSpeed Cache for WordPress
LSCache is a server-level cache. Plugins like WP Super Cache generate static HTML files that the web server must be configured to serve; LSCache instead stores pages inside LiteSpeed’s own cache module, and LiteSpeed decides — from its cache policy and each request’s cookies — whether to serve the stored copy or pass the request to PHP. Purging is instant and tag-based: editing a post purges exactly the homepage, archives, and feeds that mention it. The trade-off is a hard requirement: full page caching needs a LiteSpeed server (LSWS or OpenLiteSpeed) or the QUIC.cloud CDN. On Apache or Nginx the plugin’s cache tab simply will not engage.
Prerequisites – LiteSpeed Cache for WordPress
- A WordPress site on a LiteSpeed server (ask your host, or check for the
Server: LiteSpeedheader), or a site connected to QUIC.cloud. - Admin access to WordPress, and ideally to your hosting control panel for enabling the Redis or Memcached PHP extension.
- Any other page-cache plugin deactivated — never stack two full-page caches.
Install the plugin from Plugins → Add New → “LiteSpeed Cache”, activate it, then open LiteSpeed Cache → Dashboard. The dashboard’s cache status panel is your health check throughout this guide.
Step 1: Enable the Page Cache
Go to LiteSpeed Cache → Cache and set:
- Enable Cache: ON. This is the master switch; the dashboard should now show LSCache as enabled.
- Cache Logged-in Users: OFF (default) unless your site is a membership site with a small, known audience. Logged-in caching stores per-user copies and eats storage.
- Cache REST API: ON — safe and speeds up headless and app consumers.
- Cache Mobile: ON only if your theme serves genuinely different HTML to mobile devices (most responsive themes do not need it); it doubles the number of cached variants.
- Guest Mode + Guest Optimization: ON for typical blogs and business sites — first-time visitors get an instantly served default cached page plus critical CSS while the correct variant is prepared.
Under TTL, the defaults are sane for most sites (a long public TTL, shorter for feeds and 404s). Only shorten TTLs if your content changes unpredictably; purging — not a short TTL — is the right tool for freshness.
Verify immediately with curl from any terminal:
curl -sI https://yourdomain.com | grep -i x-litespeed-cache
# x-litespeed-cache: hit
A miss on the first request and a hit on the second is the correct pattern. Always test logged-out or in a private window — admins bypass the cache by design.
Step 2: Connect the Redis Object Cache
Page cache does nothing for wp-admin, logged-in users, or WooCommerce dashboards. The object cache stores database query results in memory and is the single biggest upgrade for dynamic WordPress. In the plugin, open LiteSpeed Cache → Cache → Object:
- First enable the extension in your hosting panel: on cPanel, enable redis (or memcached) under Select PHP Version → Extensions, or ask your host. Redis is the better default choice.
- Set Object Cache: ON and Method: Redis.
- Host
127.0.0.1, Port6379(Memcached:11211), and your Redis password if your host sets one. - Save and confirm the plugin reports Redis Extension: Enabled and Connection: Passed.
Also enable Browser Cache on the same screen (long TTL) so static assets get proper cache headers. If the connection test fails, the extension is almost always missing for the PHP version your site actually runs — check MultiPHP/Select PHP Version carefully, especially on multi-version cPanel accounts.

Step 3: Enable ESI for Dynamic Fragments
ESI (Edge Side Includes) lets LiteSpeed cache a page except for small dynamic holes — a cart widget, a nonce, a “welcome back” block — which are assembled at serve time. Open LiteSpeed Cache → ESI:
- Enable ESI: ON. Required for correct WooCommerce behaviour alongside full-page caching.
- ESI Nonce TTL: leave the default (12 hours) unless security tooling complains.
- Vary Group: only needed if you run plugins that show different content per user role (membership/ LMS sites); define groups by role as the plugin documents.
WooCommerce stores, carts, and checkout pages are excluded from caching automatically; ESI is what keeps the mini-cart count correct on cached pages. If a plugin’s widget shows stale content, its block is the ESI candidate — LSCache lets widgets be converted to ESI blocks individually.
Step 4: Image Optimization and WebP
LSCache’s image optimization runs through QUIC.cloud: you connect your domain in LiteSpeed Cache → General (request a domain key), then use Media → LiteSpeed Optimization to send images for compression. Originals are backed up and can be restored. Then, under LiteSpeed Cache → Media Settings:
- WebP Image Replacement: ON — serves WebP to browsers that support it, with the original format as fallback.
- WebP for Extra srcset: ON if your theme adds custom image sizes.
- Lazy Load Images: ON with your above-the-fold images excluded (the plugin lets you exclude the first few images and the logo) to protect LCP.
QUIC.cloud provides a free monthly optimization quota; heavy media sites can buy credits, but the cache itself never depends on them.
Step 5: Page Optimization and QUIC.cloud CDN
The Page Optimization tabs handle CSS/JS minification, HTML minify, DNS prefetch, and — most valuable — Critical CSS generation via QUIC.cloud, which inlines the CSS needed for the first paint. Roll these out one at a time and test:
- Enable CSS and JS minify first; load the site in a private window and click through key pages.
- Generate CCSS and enable Guest Optimization so first visits render fast.
- Only try CSS/JS combine if your HTTP/2 or HTTP/3 setup still benefits — on modern protocols combining often hurts; skip it if unsure.
For the CDN, QUIC.cloud can act as a full CDN in front of LiteSpeed (including its own HTTP/3 edge, useful if your origin cannot do QUIC). In LiteSpeed Cache → CDN, enable QUIC.cloud CDN after pointing your DNS as QUIC.cloud instructs. If you use a different CDN, leave its toggle off and configure the CDN’s own cache rules to respect the x-litespeed-cache behaviour instead of double-caching HTML.
Step 6: Warm the Cache with the Crawler
A cache only helps after it is populated. The plugin’s Crawler visits your sitemap and pre-builds every page. On your own server, schedule it via a real cron job hitting the crawler endpoint rather than WP-Cron for reliability. On shared hosting where cron is restricted, QUIC.cloud’s crawler service or simply accepting first-visit misses is fine — popular pages warm themselves quickly.
Tips and Warnings
- One cache plugin only. Remove WP Rocket/WP Super Cache page caching if LSCache is active (WP Rocket must be fully deactivated; they conflict).
- Exclusions are a scalpel, not a strategy. If a page misbehaves, find the dynamic element and ESI it or exclude just that URI in Cache → Excludes.
- Re-test after theme/plugin updates. A quick logged-out curl check for
x-litespeed-cache: hitcatches most regressions. - Broken layout after minify? Exclude the offending CSS/JS file in Page Optimization — this is the classic fix and pairs with general WordPress debugging such as our white screen of death guide.
- Self-hosted WordPress in containers (for example our WordPress with Docker Compose setup) pairs LSCache with an OpenLiteSpeed image — same plugin settings apply.
Frequently Asked Questions
Does the LiteSpeed Cache WordPress plugin work on Apache or Nginx?
The page-cache engine does not — it requires LiteSpeed Web Server, OpenLiteSpeed, or the QUIC.cloud CDN in front. On other servers the plugin only exposes its QUIC.cloud services (image optimization, CCSS). Use a file-based cache plugin there instead.
Is Redis mandatory for LSCache?
No. Page caching works without it. Redis (or Memcached) accelerates the admin, logged-in sessions, and WooCommerce by caching database objects — strongly recommended, not required.
Will LSCache break WooCommerce?
No. Cart, checkout, and account pages are excluded automatically, and ESI keeps dynamic fragments such as the cart widget fresh on cached pages. It is the officially recommended cache for WooCommerce on LiteSpeed hosting.
How do I clear the cache after changing content?
Normal edits purge automatically by tag. For a full reset use LiteSpeed Cache → Toolbox → Purge, or the admin-bar menu’s “Purge All” — then let the crawler re-warm key pages.
Conclusion
Configured in order — page cache, Redis object cache, ESI, WebP images, careful page optimization, and a warm crawler — the LiteSpeed Cache WordPress plugin turns a LiteSpeed server into the fastest WordPress stack most sites will ever need, with no separate caching layer to babysit. Verify every step with the x-litespeed-cache header, change one setting at a time, and your visitors will never know how much machinery is working behind a sub-second page load.