Skip to content

LiteSpeed Cache as the default WordPress baseline on cPanel

LSCache is the caching layer we install before tuning anything else on a WordPress site running on LiteSpeed-enabled cPanel — here is what it actually does and how to verify.

When a WordPress site lands on a cPanel host running LiteSpeed Web Server, the first cache layer worth installing is LSCache — the free WordPress plugin paired with the server-side LSCache module. It is full-page caching with built-in tag-based invalidation, ESI for logged-in fragments, and image optimization through QUIC.cloud. We install it before touching PHP, Redis, or the CDN, because measuring anything else on an uncached WordPress install is misleading.

What’s happening

LSCache caches the rendered HTML at the LiteSpeed level, so a cache hit never reaches PHP at all. The plugin tells the server which URLs to cache, how to purge them on post update or comment, and what to vary by (logged-in state, mobile/desktop, currency). Unlike a generic page cache plugin, LSCache lives below WordPress in the request path — closer to the wire, faster to serve, and aware of cookies for logged-in exclusion.

How to verify

From the command line on the cPanel host, confirm LiteSpeed is the active web server and the LSCache module is loaded:

/usr/local/lsws/bin/lshttpd -v
/usr/local/lsws/bin/lscached --version

From outside the box, confirm a static URL is hitting the cache:

curl -I -H "Cache-Control: no-cache" https://example.com/
curl -I https://example.com/

The second response should include x-litespeed-cache: hit and x-litespeed-cache-control: public,max-age=.... A consistent miss on uncached-by-design URLs (admin, checkout) is fine; a consistent miss on a public homepage means the plugin is installed but the cache rules are off.

The fix

  1. Install the LiteSpeed Cache plugin from the WordPress dashboard. Skip the QUIC.cloud signup for now — get the local cache working first.
  2. Under LSCache > Cache, enable cache, browser cache, and mobile cache. Leave login-cookie defaults alone unless the site uses non-standard auth.
  3. Under Purge, set automatic purge rules for “Post Publish/Update” and “All Pages”. Tag-based purge means you do not need to wipe the cache on every save.
  4. Under Crawler, leave the crawler off until measurement shows a cold-cache problem — it eats CPU.
  5. Re-run the curl -I check. The TTFB on a cache hit should be in the low tens of milliseconds; if it is still hundreds of ms, the request is bypassing the cache.

Once LSCache is hitting consistently, only then is it worth measuring PHP, Redis object cache, or CDN behavior. Stack Harbor configures LSCache as part of cPanel server management.