LiteSpeed Cache (often shortened to LSCache) is one of the most installed performance plugins for WordPress. It combines a very fast page cache with a long list of extra optimisations. There is one catch that many guides skip: the page cache only works when your site runs on a LiteSpeed web server. This guide explains how the plugin works, how to tell whether your hosting can use it, which settings are worth changing, how to verify that it works, and what to use instead if your server runs Apache or Nginx.
What LiteSpeed Cache does
The plugin bundles several features into one:
- Page cache — finished HTML pages served without starting PHP.
- Page optimisation — minifying and combining CSS and JavaScript, deferring scripts, lazy loading.
- Image optimisation — compression and WebP/AVIF conversion via the QUIC.cloud service.
- Object cache — a connector for Redis or Memcached, if your host provides one.
- Database clean-up — revisions, drafts, spam and expired transients.
- Crawler — visits your pages in advance so the cache is warm before real visitors arrive.
Only the page cache depends on the web server. That's the feature most people install it for, though.
How the page cache works — and why it needs LiteSpeed
With most WordPress cache plugins, PHP still starts on every request, checks whether a cached file exists and hands it over. LiteSpeed works differently: the cache lives inside the web server. When a cached page exists, the server delivers it directly and PHP never runs. That is why it is so fast.
The plugin's job is to tell the server what to cache, for how long and what to purge. When you update a post, it purges just that post, the front page and the related category and archive pages, instead of emptying the whole cache.
This server-level cache is available on LiteSpeed Enterprise and the open-source OpenLiteSpeed. On Apache or Nginx, the plugin installs fine, but the page cache simply stays inactive.
How to check which web server you have
Look at the response headers of your site:
curl -sI https://example.com | grep -i -E '^server|x-litespeed'
A server: LiteSpeed header means you can use the page cache. server: nginx or server: Apache means you can't. Some hosts hide the header, so if in doubt, ask your provider.
Installing and configuring the plugin
If your host runs LiteSpeed:
- Take a backup — see how to back up WordPress.
- Deactivate and delete any other cache or minification plugins. Running two is the number one cause of problems.
- Go to Plugins → Add New, search for "LiteSpeed Cache", install and activate.
- A new LiteSpeed Cache menu appears in the dashboard with sub-menus for Cache, Page Optimization, Image Optimization, Database, Crawler and Toolbox.
Cache settings
- Enable Cache: On.
- Cache Logged-in Users: Off, unless you understand the consequences. Logged-in pages often contain personal data.
- Cache Mobile: On only if your theme serves different HTML to phones. Most responsive themes don't.
- Leave the default TTLs unless you have a reason to change them.
Page optimisation — one setting at a time
This is where sites break. Work from low to high risk:
| Risk | Settings |
|---|---|
| Low | CSS minify, JS minify, HTML minify, lazy load images |
| Medium | Combine CSS, load JS deferred |
| High | Combine JS, generate critical CSS, delay JavaScript until user interaction |
After each change: purge the cache, open the site in a private window and test menus, forms, sliders and checkout.
Image and database settings
Image optimisation requires connecting to QUIC.cloud. Enable "Optimize Original Images" with backups kept, so you can roll back. Our guide on optimising images in WordPress covers formats and pitfalls.
For the database tools, export the database first and remember that clean-ups can't be undone.
Tip: Only enable the object cache if your host actually provides Redis or Memcached. The plugin shows a connection test — if it doesn't say "Passed", leave it off.
The crawler
The crawler visits the URLs in your sitemap on a schedule so that pages are already cached when a real visitor arrives. It's most useful on large sites where each page gets little traffic and would otherwise often be cold. On shared hosting the crawler may be disabled or limited by the provider, because it generates load around the clock — leave it off unless you see many miss responses on pages that matter.
Verifying that the cache works
Open your site in a private window (logged out) and check the headers twice:
curl -sI https://example.com | grep -i x-litespeed-cache
curl -sI https://example.com | grep -i x-litespeed-cache
The first request usually returns x-litespeed-cache: miss, the second x-litespeed-cache: hit. A hit means the page came straight from the server's cache. No header at all means the cache isn't active — often because the server isn't LiteSpeed.
Troubleshooting
- Old content after an update. Purge the cache from the admin bar (LiteSpeed → Purge All).
- Broken layout or missing menu. Add
?LSCWP_CTRL=before_optmto the URL to see the page without optimisations. If it looks right, switch off page optimisation settings one by one and exclude the file that causes the problem. - Forms fail with nonce errors. The cached page contains an expired security token. Exclude the page from the cache or use ESI for the dynamic part.
- Visitors see someone else's data. A personal page is being cached. Exclude it immediately and purge the cache.
- The admin area is still slow. Page cache doesn't apply to wp-admin. An object cache and a current PHP version help there — see PHP performance.
Alternatives when you don't have LiteSpeed
| Option | Works on | Notes |
|---|---|---|
| WP Super Cache | Apache, Nginx | Free, simple, static HTML files |
| W3 Total Cache | Apache, Nginx | Free, many options, steeper learning curve |
| WP Rocket | Apache, Nginx | Paid, easy setup, page cache plus optimisation |
| Nginx FastCGI cache | Your own Nginx server | Server-level, very fast, needs manual purging rules |
| Object cache (Redis) | Any server with Redis | Complements page cache; helps logged-in users |
On your own VPS, Nginx's FastCGI cache gives you server-level caching similar in spirit to LiteSpeed's — see installing Nginx on Ubuntu and our broader checklist for speeding up WordPress.
In short
LiteSpeed Cache is excellent when the server runs LiteSpeed, because pages are served without PHP. On Apache or Nginx its page cache stays off, so choose another cache plugin or server-level caching. Whatever you use: one cache plugin only, change optimisation settings one at a time, and confirm with response headers.
Caching on Hostigan
Check which web server your plan runs before you pick a cache plugin — if you're unsure, ask our team. Hostigan's WordPress hosting includes object caching on WP Pro and up, which speeds up the admin area and logged-in visitors alongside whichever page cache you choose.
Frequently asked questions
The page cache does not, because it is built into the LiteSpeed web server itself. Some features such as image optimisation and CSS/JS optimisation can still run elsewhere, but for page caching on Apache or Nginx you need a different plugin or server-level caching.