20% off your first order with code APEX20 00:00:00 See deals
← Back to Blog Speed

How to Speed Up WordPress with LiteSpeed Cache (Full Guide)

By Hoststack Team·May 2025·6 min read

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

  1. In WordPress admin, go to Plugins → Add New
  2. Search for "LiteSpeed Cache"
  3. Click Install Now then Activate
  4. 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

IssueFix
Cart/checkout not workingExclude /cart, /checkout, /my-account from cache under Cache → Exclude
Admin logged-in users see wrong pagesDisable 'Cache Logged-in Users'
WooCommerce product prices wrongEnable 'Do Not Cache WooCommerce Pages'
JS errors after enabling combineDisable 'Combine JS' — minify only
Images look the same after optimizationCheck 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

Deploy today

Online in 60 seconds. Supported around the clock.

Hosting, VPS and game servers on Mumbai infrastructure — INR billing, GST invoices, and code APEX20 for 20% off your first order.

5,000+ customers served
99.9% uptime SLA
<8ms ping across India
24/7 expert support
WhatsApp Discord