What Is LiteSpeed Cache and Why Is It Free Yet Better Than Many Premium Plugins?
LiteSpeed Cache (LSCWP) is a WordPress plugin developed and maintained by LiteSpeed Technologies — the same company behind LiteSpeed Web Server. The plugin is 100% free on WordPress.org yet delivers features that surpass many Freemium alternatives. LiteSpeed provides it at no cost to drive adoption of LiteSpeed Web Server among hosting providers, creating a win-win for both parties.
What sets LiteSpeed Cache apart is server-level page caching. Rather than generating cached pages through PHP, the cache is handled directly at the web server layer — making it significantly faster than PHP-based solutions like W3 Total Cache or WP Super Cache. It also bundles CSS/JS minification and combining, image optimization, WebP auto-conversion, Redis/Memcached object cache, browser cache, ESI for WooCommerce dynamic content, and CDN integration — all in a single free plugin.
Key advantages of LiteSpeed Cache: 100% free for all core features, server-level page cache faster than PHP-based alternatives, Redis object cache at no extra cost, built-in WebP auto-conversion, ESI for WooCommerce, and native integration with Cloudflare and QUIC.cloud CDN.
LiteSpeed Cache has over 5 million active installations on WordPress.org and maintains an average rating of 4.9 stars from more than 8,000 reviews — an exceptional record for a plugin in its category.
System Requirements: Hosting That Supports LiteSpeed Cache
Before installing, it helps to understand which features require specific server environments, because not every feature needs LiteSpeed Web Server.
Features Requiring LiteSpeed Web Server or OpenLiteSpeed
- Server-Level Page Cache — fastest possible caching handled at the web server
- ESI (Edge Side Includes) — for WooCommerce cart, account, and other dynamic fragments
- Private Cache — per-user cache for logged-in visitors
- Crawler — automatically warms the cache after a purge
Features Compatible with Any Web Server (Apache, Nginx, LiteSpeed)
- CSS/JS Minify and Combine
- Image Optimization and WebP Conversion
- LazyLoad for images and iframes
- Object Cache via Redis or Memcached
- Browser Cache
- Critical CSS generation
- Database optimization
AsiaGB DirectAdmin hosting supports LiteSpeed Web Server, enabling server-level page cache at full capacity. To check your web server, go to DirectAdmin → Statistics → System Information.
Installing LiteSpeed Cache Step by Step
Installing LiteSpeed Cache is as straightforward as any WordPress plugin — no technical expertise required.
- Log in to your WordPress Admin Dashboard.
- Navigate to Plugins → Add New.
- Search for "LiteSpeed Cache".
- Click Install Now on the plugin by LiteSpeed Technologies.
- Once installed, click Activate.
- A setup wizard will appear — follow it to apply recommended settings.
Important: If you are running another cache plugin such as WP Rocket, W3 Total Cache, or WP Super Cache, deactivate and delete them first to prevent cache conflicts that can break page rendering.
Cache Settings — Enable Cache, TTL, Login Cookie
Core cache settings live under LiteSpeed Cache → Cache in your WordPress admin.
Cache Tab Essentials
- Enable Cache — Always ON. This activates page caching.
- Cache Logged-in Users — Leave OFF for most sites. Logged-in users typically see personalized content that should not be served from cache.
- Cache Login Page — Always OFF. The login page contains a nonce that changes with every request.
- Cache REST API — ON if your site uses the REST API (e.g., Gutenberg blocks or headless setups).
Cache TTL (Time to Live)
The default TTL is 604,800 seconds (7 days), which suits most sites. For sites that publish new content daily, reduce it to 86,400 seconds (1 day). For rarely-changing content, you can safely increase it to 2,592,000 (30 days).
Login Cookie
If WooCommerce or a membership plugin uses a custom cookie to track login state, add that cookie name to "Login Cookies" so LiteSpeed Cache avoids caching pages for those authenticated sessions.
CSS/JS Minify and Combine Settings
Minification strips whitespace and comments from files; combining merges multiple files into one to reduce HTTP requests. Find these settings under LiteSpeed Cache → Page Optimization → CSS Settings / JS Settings.
Recommended CSS Settings
- CSS Minify — ON. Safe for most themes.
- CSS Combine — Enable cautiously; test all page types after turning on.
- Generate Critical CSS — ON. Automatically builds above-the-fold CSS to eliminate render-blocking.
- CSS Excludes — Add CSS files from page builders that are known to break under minification.
Recommended JS Settings
- JS Minify — ON. Generally safe.
- JS Combine — Test carefully; some scripts are incompatible with combining.
- JS Defer — ON. Loads scripts after HTML rendering, reducing blocking time.
- JS Delay — ON in advanced mode to defer non-critical scripts until user interaction.
Caution: After enabling JS Combine, test your site thoroughly — including WooCommerce Checkout — as combining can break payment gateway scripts.
Image Optimization — WebP Auto Conversion and LazyLoad
LiteSpeed Cache offers image optimization through QUIC.cloud (free credits available monthly) as well as server-side WebP conversion and LazyLoad that work without any external service.
WebP Auto Conversion
Go to LiteSpeed Cache → Image Optimization → Image WebP Replacement and enable WebP Replacement. LiteSpeed Cache will automatically convert JPG/PNG to WebP and serve it to supporting browsers, while older browsers receive the original format. Conversion uses the server's existing ImageMagick or GD Library.
LazyLoad
Go to LiteSpeed Cache → Page Optimization → Media Settings and enable Lazy Load Images. This adds loading="lazy" to all images automatically, so browsers load only what is visible in the viewport.
- Lazy Load Iframes — ON to defer YouTube embeds and Google Maps.
- Exclude above-the-fold images — Critical: exclude your hero/LCP image from lazy loading, otherwise PageSpeed Insights will penalize your LCP score.
Object Cache — Redis/Memcached Integration
Object Cache stores WordPress database query results, transients, and option values in Redis or Memcached so PHP does not repeat expensive operations on every request.
Setting Up Redis Object Cache
- Go to LiteSpeed Cache → Settings → Object Cache.
- Set Object Cache to ON and select Redis as the method.
- Enter Host (usually
127.0.0.1) and Port (default 6379). - Click Test to verify the connection.
- If the test passes, click Save Changes.
Performance impact: Object Cache can cut TTFB dramatically on plugin-heavy sites. Many WooCommerce stores report TTFB dropping from 800 ms to under 150 ms after enabling Redis object cache.
Browser Cache and CDN Integration (Cloudflare, QUIC.cloud)
Browser Cache instructs visitors' browsers to store static assets (images, CSS, JS) locally, making repeat visits load almost instantly.
Browser Cache Settings
Go to LiteSpeed Cache → Cache → Browser Cache and turn it ON. A TTL of 2,592,000 seconds (30 days) is recommended for static assets.
Cloudflare Integration
LiteSpeed Cache can automatically purge Cloudflare's edge cache when your content changes. Go to LiteSpeed Cache → Toolbox → Network, then add your Cloudflare API Token with Zone Cache Purge (Edit) permission. Enable Auto Purge Cloudflare Cache to keep the CDN in sync with your origin.
QUIC.cloud CDN
QUIC.cloud is LiteSpeed's own CDN with native HTTP/3 and QUIC support. Connect your domain under LiteSpeed Cache → Settings → QUIC.cloud. The free tier includes 6 GB of bandwidth per month, which is sufficient for small to medium sites.
ESI (Edge Side Includes) for WooCommerce Dynamic Content
ESI allows LiteSpeed Web Server to cache an entire page while dynamically fetching small fragments — such as cart count, account menu, or wishlist — that would otherwise prevent full-page caching.
How ESI Works
Instead of bypassing the cache for pages with dynamic content, LiteSpeed Cache serves the cached page and replaces ESI tags with fresh fragments fetched in parallel. The result is a fast cached response with accurate per-user data.
Enabling ESI for WooCommerce
- Go to LiteSpeed Cache → Store → WooCommerce.
- Enable Use ESI for Cart.
- Enable Use ESI for Checkout.
- Enable Cache Add-to-Cart Fragments.
Result: WooCommerce product and shop pages can be fully cached — even for users with items in their cart — improving PageSpeed scores and reducing TTFB significantly.
LiteSpeed Cache vs WP Rocket: Feature Comparison
WP Rocket is a popular premium cache plugin priced around $59/year per site. Here is how it stacks up against the free LiteSpeed Cache.
| Feature | LiteSpeed Cache | WP Rocket |
|---|---|---|
| Price | Free | $59/year/site |
| Page Cache | Server-level (faster) | PHP-level |
| Object Cache (Redis) | Built-in, free | Requires separate plugin |
| CSS/JS Minify & Combine | Full | Full |
| Image Optimization | Free via QUIC.cloud | Requires Imagify (separate cost) |
| WebP Conversion | Free | Requires Imagify |
| LazyLoad | Free | Free |
| ESI (WooCommerce) | Free (LiteSpeed Server required) | Not available |
| CDN Integration | Cloudflare + QUIC.cloud | Cloudflare + RocketCDN |
| Ease of Use | More complex UI | Beginner-friendly |
| Support | Community forums | Priority email support |
Troubleshooting — Missing CSS, Images Not Loading, Login Loop
Missing CSS / Broken Layout
Usually caused by CSS Combine loading stylesheets in the wrong order. Fix: go to Page Optimization → CSS Settings, add the problematic CSS file to "CSS Excludes," or disable CSS Combine while keeping CSS Minify active.
Images Not Showing / WebP Not Working
Check whether your server's ImageMagick or GD Library has WebP support enabled. Go to LiteSpeed Cache → Image Optimization and review the Server Status section. If WebP is not supported, contact your hosting provider.
Login Loop
Go to Cache → Excludes and add /wp-login.php and /wp-admin/ to "Do Not Cache URIs." Then go to Toolbox → Purge → Purge All.
WooCommerce Cart Count Incorrect
Enable ESI as described above, or add the WooCommerce session cookie to Login Cookies so LiteSpeed Cache skips caching for sessions with items in the cart.
Need Hosting with LiteSpeed Web Server?
AsiaGB provides web hosting and VPS on LiteSpeed Web Server with DirectAdmin. Install LiteSpeed Cache and get full server-level caching immediately — no extra configuration needed.
View Hosting Plans