LiteSpeed Cache is included with most cPanel hosts running LiteSpeed Enterprise, and it’s the cheapest, fastest cache layer you can put in front of a WordPress site there. The plugin has roughly a hundred settings. The vast majority of sites need maybe fifteen of them touched.
What’s happening
LiteSpeed Cache on a LiteSpeed server uses a server-level cache (the page cache lives in the web server itself, not in PHP). When a logged-out user requests a page, LiteSpeed serves it from cache without invoking PHP at all. That’s the win. The trade-off is that anything that needs personalization (logged-in users, cart, account pages) has to be excluded from cache or the cache layer has to be told who can see what.
How to verify
After install, check the basics:
wp plugin list --name=litespeed-cache --status=active
wp lscache-purge all
curl -I https://example.com | grep -i 'x-litespeed-cache\|x-lsadc'
The first hit on a page should show X-LiteSpeed-Cache: miss. The second hit, immediately after, should show hit. If you never see hit, the cache is not engaging — usually because of a misconfigured exclude or a session cookie WordPress isn’t expecting.
The fix
The settings worth touching, in order:
-
Cache > Cache: Enable Cache, Cache Logged-in Users (off unless you specifically need it), Cache Commenters (off), Cache REST API (off for most sites), Cache Login Page (off — you want fresh nonces).
-
Cache > TTL: Default Public Cache TTL 28800 (8 hours), Default Private Cache TTL 1800, Default Front Page TTL 28800, Default Feed TTL 1800, Default 404 Page TTL 3600.
-
Cache > Purge: Auto Purge Rules — leave defaults; they correctly purge post-related URLs when content changes. Add custom purge URLs only if you have a known dependency (e.g., a custom widget that aggregates posts).
-
Cache > Excludes: Add patterns for any URL that should never cache. Typical entries:
/cart,/checkout,/my-account,/wp-json/wc, anything matching?action=. For WooCommerce, the plugin auto-excludes the right paths but verify withwp lscache-purge tag woo. -
CDN > CDN Settings: only enable QUIC.cloud CDN if you’ve actually configured an account. Half-configured CDN is worse than no CDN.
-
Image Optimization > Image Optimization Settings: Auto Request Cron on, Optimize Original Images on, Create WebP Versions on, Image WebP Replacement on. Run the initial pull at off-peak — it sends every image to QUIC.cloud’s optimization service.
-
Page Optimization > CSS Settings: CSS Minify on, CSS Combine cautious (it breaks plugins that load CSS conditionally), Generate UCSS off until you test (Used CSS extraction is great when it works and visually destructive when it doesn’t).
-
Page Optimization > JS Settings: JS Minify on, JS Combine off (almost always breaks something), JS Defer “Deferred” for most cases.
-
Page Optimization > HTML Settings: HTML Minify on, DNS Prefetch on, Remove WordPress Emoji on (saves a request and a script tag).
-
Database > DB Optimizer: do not enable the automatic optimizer. Run it manually when you understand what it’s doing. Auto-cleanup of transients has surprised more than one developer who was using transients for short-term locks.
-
Crawler: leave off unless you specifically want LiteSpeed to warm the cache. On low-traffic sites it’s useful; on high-traffic ones it’s noise.
-
Toolbox > Edit .htaccess: confirm the LiteSpeed block is present. If
.htaccesswas hand-edited, the plugin may not have been able to write its block.
Document the configuration. The next operator should not have to reverse-engineer what was set and why. For environments running this at scale, Stack Harbor maintains site-specific LiteSpeed profiles as part of enterprise WordPress hosting.