LiteSpeed + LSCache for WordPress: Make WordPress Faster, Step by Step (2026)
LiteSpeed + LSCache makes WordPress faster by storing the pages WordPress has already built as HTML at the web server level, so the next visitor gets the cached page immediately, without running PHP or querying the database again. To use it, run the site on LiteSpeed Web Server Enterprise and install the LiteSpeed Cache plugin in WordPress. Dot Enterprise Linux Cloud Servers include LiteSpeed Enterprise free of charge with Plesk or cPanel.
This article explains why WordPress is slow, how LiteSpeed and LSCache differ from ordinary cache plugins, and walks through installation, recommended settings, how to confirm the cache works, and common mistakes.
Why WordPress is slow
WordPress is a dynamic application. Every time someone opens a page, the server goes through several steps before it can send HTML back:
- The web server hands the request to PHP
- PHP loads WordPress core, the theme and every active plugin
- WordPress fetches posts, menus, widgets and options from the database (MySQL/MariaDB), often with dozens of queries
- Everything is assembled into HTML and sent to the browser
If the same page is opened 1,000 times, this work is repeated 1,000 times, even though the result is almost identical each time. More plugins or more concurrent visitors put more load on CPU and database, and time to first byte (TTFB) gets worse.
The most effective fix is a full-page cache: keep the finished HTML and hand that copy to the next visitor. Other tuning such as PHP OPcache or an object cache makes page generation faster when a page does have to be built, and can be used alongside it.
What is LiteSpeed Web Server Enterprise
LiteSpeed Web Server (LSWS) Enterprise is a commercial web server designed as a drop-in replacement for Apache. Highlights from the LiteSpeed features page:
- Reads Apache configuration and .htaccess files directly — WordPress permalink rewrites and plugin rules in .htaccess keep working without migration. (The Apache Migration FAQ notes small differences in some rewrite rules, and Apache modules are not loaded directly, although features of many common modules are built in.)
- Event-driven architecture — fewer processes and low overhead, handling many concurrent connections with a small memory footprint
- Built-in LSCache — a server-level cache (see the next section)
- HTTP/3 (QUIC) and Brotli — support for the newer protocol and Brotli compression
- Basic Layer 7 DDoS protection — connection and bandwidth throttling plus server-level reCAPTCHA
For a broader comparison with Nginx and Apache, see Nginx vs Apache vs LiteSpeed for Cloud VPS (Thai).
How LSCache works
LSCache is a page cache built into LiteSpeed itself (LiteSpeed positions it as an alternative to Apache mod_cache and Varnish). When a page is generated for the first time, the server stores it as HTML; later matching requests are served from cache without WordPress regenerating the page.
The LiteSpeed Cache for WordPress (LSCWP) plugin acts as the controller: it tells the server which pages may be cached, for how long, and when they must be purged. The key capabilities:
Purge only what changed (tag-based / smart purge)
LSCache attaches tags to cached pages through the X-LiteSpeed-Tag header and can purge by tag with X-LiteSpeed-Purge (Basic Controls docs). The plugin therefore purges only the related pages when content changes — editing one post purges that post plus its category and related listing pages, configurable under Auto Purge Rules For Publish/Update — instead of clearing the whole site.
Public cache, private cache and ESI
The LSCache developer guide describes two cache types: public, shared by everyone (for example visitors who are not logged in), and private, for pages with personalized content, keyed by IP and session cookies. This is how the plugin can cache pages for logged-in users too (the Cache Logged-in Users setting).
ESI (Edge Side Includes) punches “holes” in a public page so that some blocks, such as the admin bar or comment form, are private while the rest is still served from cache. ESI works with LiteSpeed Enterprise (OpenLiteSpeed does not support it) and is enabled under Cache → ESI (Cache settings docs).
Other optimization features in the plugin
Besides page cache, the plugin includes several optimization tools. Some run locally, others use LiteSpeed’s QUIC.cloud service (per the Image Optimization docs and Page Optimization docs):
| Feature | What it does | Requires |
|---|---|---|
| Page Cache (full-page) | Stores whole HTML pages at server level | A LiteSpeed server (or QUIC.cloud CDN) |
| ESI | Makes parts of a page private or uncached | LiteSpeed Enterprise (not OpenLiteSpeed) |
| CSS/JS Minify, Combine | Strips whitespace/comments and merges files | Runs locally (off by default) |
| Load JS Deferred | Runs JavaScript after the HTML has loaded | Runs locally (off by default) |
| Lazy Load Images | Loads images as they scroll into view | Runs locally (off by default) |
| Image Optimization (compression, WebP/AVIF) | Compresses images and creates next-gen formats | QUIC.cloud service (standard queue is free) |
| UCSS, Critical CSS, Load CSS Asynchronously | Generates per-page CSS and above-the-fold CSS | QUIC.cloud service (QUIC.cloud quotas/fees may apply) |
Important: the plugin can be installed on Apache or Nginx, but there you only get the optimization features. Page caching requires a LiteSpeed server (LSCWP FAQ).
What HTTP/3 (QUIC) and Brotli add
HTTP/3 is the newer version of HTTP that runs over QUIC (UDP) instead of TCP. Brotli is a compression method for text files (HTML, CSS, JS) supported by modern browsers. Both work at the web server level; WordPress needs no extra configuration.
According to the LiteSpeed QUIC/HTTP3 docs, QUIC is on by default. It requires HTTPS with a trusted certificate (self-signed will not work) and UDP port 443 open in the firewall. If the site sits behind a reverse proxy such as Cloudflare, QUIC connections to the origin server will not happen.
Get LiteSpeed Enterprise free on a Linux Cloud Server Every Dot Enterprise Linux Cloud Server plan can include LiteSpeed Enterprise with Plesk or cPanel at no charge, installed by our team. See current pricing and licence value on the campaign page.
Choose a plan with LiteSpeedBefore you start
- A Linux server running LiteSpeed Web Server Enterprise through Plesk or cPanel — the LiteSpeed Enterprise offered by Dot Enterprise requires one of these control panels and is not available on Windows (Windows Cloud Servers use IIS via Plesk)
- WordPress 6.0+ and PHP 7.4+, per the LSCWP requirements
- A backup first — especially before enabling CSS/JS optimization (Dot Enterprise Cloud Servers already include free daily backups)
No site yet? See how to install WordPress on a de.co.th Cloud VPS with Plesk. Choosing a server size? See choosing a Cloud VPS spec for WordPress (both in Thai).
Installing the LiteSpeed Cache plugin
These steps follow the LSCWP installation guide:
Step 1: Deactivate other page cache plugins
If WP Super Cache, W3 Total Cache, WP Rocket or another page cache is active, deactivate it first. Only one full-page cache should be running; other cache types such as object cache can still be used.
Step 2: Install and activate the plugin
In WordPress go to Plugins → Add New, search for “LiteSpeed Cache”, click Install, then Activate. Plesk users can also install it through WordPress Toolkit.
Step 3: Turn on Enable Cache
Go to LiteSpeed Cache → Cache → Cache, make sure Enable Cache is ON, and save.
Recommended starter settings
The plugin defaults suit most sites. Adjust only a few items (setting names from the Cache docs):
- Enable Cache: ON
- Cache Logged-in Users: ON (default), stored as each user’s private cache
- Purge All on Upgrade: make sure it is ON, as the docs recommend, so the cache is cleared whenever plugins, themes or WordPress core are updated
- Auto Purge Rules For Publish/Update: keep the defaults; there is no need to tick All pages
- Page Optimization (CSS/JS Minify, Combine, Load JS Deferred): off by default. Enable them one at a time, click Purge All and check the site each time, because some themes and plugins break. The docs themselves warn to test before using them in production
- Guest Mode: off by default. When on, a first-time visitor gets a default cached page and the correct version loads afterwards, so wrong content (such as language) may show briefly. Leave it off unless you need it (General docs)
- Image Optimization: requires enabling QUIC.cloud services under General first. Be careful with Auto Rescale Original Images, which resizes originals irreversibly
How to verify a cache HIT
Test while logged out (an incognito window or curl), because logged-in users get a private cache or uncached pages. Load the page with curl (a GET request) and read the response headers twice in a row. Once a page is cached, a quick curl -I also works:
# First request: the page is generated and stored in cache
curl -s -o /dev/null -D - https://example.com/ | grep -i x-litespeed
# x-litespeed-cache: miss
# Second request: served from cache
curl -s -o /dev/null -D - https://example.com/ | grep -i x-litespeed
# x-litespeed-cache: hit
| Header | Meaning |
|---|---|
x-litespeed-cache: miss | Not cached yet; the page was just built and stored. Request it again |
x-litespeed-cache: hit | Served from cache, PHP was not run |
x-litespeed-cache-control: no-cache | The page is deliberately not cached (e.g. the cart, or an excluded URL) |
x-qc-cache / x-lsadc-cache | Served via QUIC.cloud CDN or LiteSpeed Web ADC — caching is working |
| None of these headers | LSCache is misconfigured, or the server is not LiteSpeed |
You can also check in the browser: open DevTools, go to the Network tab, reload, select the first HTML document and look at the response headers.
Common mistakes
- Several page cache plugins at once — caches stack, purges miss, stale pages linger. Keep LiteSpeed Cache only
- WooCommerce: Cart, Checkout and My Account are excluded from cache by default, but they must be assigned correctly in WooCommerce → Settings or the plugin may cache the wrong pages. If the theme has a mini cart, consider Vary for Mini Cart
- Excluding a cookie that exists on every page in the Excludes tab — this silently disables caching for the whole site
- Testing while logged in as admin and concluding the cache does not work — always test logged out
- Turning on every CSS/JS optimization at once — when something breaks you cannot tell which one. Enable one at a time and Purge All
- Installing the plugin on an Apache/Nginx server — there is no page cache; move the site to a LiteSpeed server first
FAQ
Is LiteSpeed Cache free?
The LiteSpeed Cache plugin is free in the WordPress Plugin Directory, but page caching needs a LiteSpeed server. Every Dot Enterprise Linux Cloud Server plan gets a free LiteSpeed Enterprise licence with Plesk or cPanel (see the Cloud Server free licence page). Some optional QUIC.cloud services may have quotas under QUIC.cloud’s own terms.
Can I use LiteSpeed on a Windows Cloud Server?
No. The free LiteSpeed Enterprise is for Linux Cloud Servers with Plesk or cPanel only. Windows Cloud Servers use IIS through Plesk Web Host Edition, which is better suited to ASP.NET sites.
Do I need to change .htaccess when moving from Apache to LiteSpeed?
Usually not. LiteSpeed reads Apache configuration and .htaccess, so WordPress permalinks keep working. Some rewrite patterns behave slightly differently; our team can check them during installation.
Can I use it with Cloudflare?
Yes, but according to the LiteSpeed docs, QUIC/HTTP3 connections from Cloudflare to the origin server will not happen, because reverse proxies do not support QUIC to backend servers.
Why do I still see the old version after editing a post?
The plugin normally purges related pages automatically. If you still see old content, click Purge All in the admin bar and check that no other cache layer (another plugin, a CDN, the browser cache) is in front.
Summary
- WordPress is slow because every request runs PHP and queries the database — a full-page cache addresses that directly
- LiteSpeed Enterprise replaces Apache, reads .htaccess, is event-driven, and includes LSCache, HTTP/3 and Brotli
- The LiteSpeed Cache plugin controls the server-level cache, purges by tag, and supports private cache and ESI
- Setup: deactivate other page caches → install the plugin → Enable Cache → check for
x-litespeed-cache: hit - Enable optimization features one at a time and always test
- LiteSpeed requires Plesk or cPanel on Linux and is free with every Dot Enterprise Linux Cloud Server plan
Want a faster WordPress without the setup work? Choose a Linux Cloud Server on the campaign page and ask the Dot Enterprise team to install LiteSpeed Enterprise and configure LSCache for you, free of charge.
View plans and order