How to Speed Up WordPress with LiteSpeed Cache (Full Guide)
LiteSpeed Cache (LSC) is a free WordPress plugin that integrates directly with the LiteSpeed web server used on all Hoststack hosting plans. Unlike generic caching plugins, LSC uses server-level full-page caching — meaning WordPress PHP doesn't even run for cached pages.
Real-world results on Hoststack
A standard WordPress blog with 10 plugins: uncached TTFB 820ms → cached TTFB 38ms. That's a 95% reduction. Google PageSpeed score typically moves from 60s to 90s.
Step 1: Install the LiteSpeed Cache Plugin
- In WordPress admin, go to Plugins → Add New
- Search for "LiteSpeed Cache"
- Click Install Now then Activate
- The plugin auto-detects LiteSpeed server — you'll see a green "LiteSpeed Web Server detected" notice
Step 2: Essential Settings to Configure
Cache → Enable Cache
Turn on. This activates full-page caching at the server level.
Cache → Cache Logged-in Users
Turn OFF unless you have a membership site. Otherwise members see cached versions of each other's dashboards.
Page Optimization → CSS Minify
Turn ON. Reduces stylesheet size by removing whitespace and comments.
Page Optimization → JS Minify
Turn ON. Reduce JS file size. If site breaks, try 'Combine JS' OFF.
Page Optimization → Lazy Load Images
Turn ON. Images below the fold only load when the user scrolls to them.
Image Optimization → Lossless compression
Turn ON. Compress images without quality loss through LSC's API (free credits included).
CDN → Cloudflare
If using Cloudflare, enter your API key here to purge Cloudflare cache automatically when you publish.
Step 3: Test Your Speed Improvement
- Visit Google PageSpeed Insights and test your URL before and after
- Check TTFB (Time to First Byte) — should drop below 200ms on cached pages
- Use GTmetrix to see waterfall: LiteSpeed-served pages show "X-Cache: HIT" in response headers
- Test with browser DevTools: Network tab → reload → first HTML request should complete in <100ms
Common Issues and Fixes
| Issue | Fix |
|---|---|
| Cart/checkout not working | Exclude /cart, /checkout, /my-account from cache under Cache → Exclude |
| Admin logged-in users see wrong pages | Disable 'Cache Logged-in Users' |
| WooCommerce product prices wrong | Enable 'Do Not Cache WooCommerce Pages' |
| JS errors after enabling combine | Disable 'Combine JS' — minify only |
| Images look the same after optimization | Check LSC dashboard → Image Optimization → Optimization Status |
Get LiteSpeed hosting from ₹99/mo
All Hoststack hosting plans include LiteSpeed web server, LSCache support and free SSL.
View Cloud Hosting