Hosting

What is LiteSpeed Cache and how to set it up

LiteSpeed Cache is a free WordPress plugin that can make your site dramatically faster on LiteSpeed hosting. Learn what it does and how to set it up safely, step by step.

What is LiteSpeed Cache and how to set it up

If your WordPress site runs on a LiteSpeed web server, you have access to one of the most powerful speed tools available, and it is free. But many site owners in Uganda either never install it or switch on every setting at once and break their layout. This guide explains what LiteSpeed Cache is, how it works and how to set it up step by step, so your site loads fast without unexpected problems.

What is LiteSpeed Cache?

LiteSpeed Cache, often shortened to LSCache, is a WordPress plugin developed by LiteSpeed Technologies. It works together with LiteSpeed Web Server, a high performance alternative to Apache that many hosting providers use, including Baasa Cloud.

Most caching plugins create cached pages using PHP inside WordPress. LiteSpeed Cache is different because the caching happens at the server level. When a visitor requests a page, the server can deliver a ready made copy directly, without loading WordPress and running database queries each time. The result is much faster page loads and lower server load, especially during traffic spikes such as a promotion or a viral social media post.

What LiteSpeed Cache can do

  • Page caching: stores full pages and serves them instantly.
  • Browser caching: tells visitors' browsers to keep static files like images and CSS for longer.
  • Object caching: can connect to Redis or Memcached, if your hosting supports them, to speed up database heavy sites.
  • CSS and JavaScript optimisation: minifies and combines files, and can defer non essential scripts.
  • Image optimisation: compresses images and creates WebP versions through the QUIC.cloud service.
  • Lazy loading: loads images and iframes only when they are about to be seen.
  • Database cleanup: removes old revisions, spam comments and expired data.
  • WooCommerce support: handles carts and logged in users correctly, so shoppers do not see each other's carts.

Before you start: checks and precautions

  1. Confirm your server runs LiteSpeed. Ask your host, or check the server response headers in your browser's developer tools for "LiteSpeed". The page cache only works fully on LiteSpeed or OpenLiteSpeed servers.
  2. Take a full backup. Optimisation settings can occasionally break layouts or scripts.
  3. Remove other caching plugins. Running WP Super Cache, W3 Total Cache or WP Rocket alongside LiteSpeed Cache can cause conflicts. Deactivate and delete them first.
  4. Note your current speed. Test key pages in Google PageSpeed Insights so you can compare later.

Step by step: how to set up LiteSpeed Cache

Step 1: Install and activate the plugin

In your WordPress dashboard, go to Plugins, then Add New, search for "LiteSpeed Cache", install and activate it. A new LiteSpeed Cache menu appears in the sidebar.

Step 2: Connect to QUIC.cloud (optional but useful)

Under LiteSpeed Cache then General, you can request a domain key and link your site to QUIC.cloud. This enables online services such as image optimisation and critical CSS generation. Free quotas are available, with paid options for heavier use.

Step 3: Turn on page caching

Go to LiteSpeed Cache, then Cache. Make sure "Enable Cache" is on. The default settings are sensible for most sites:

  • Cache logged in users: usually off for simple sites, can be on for membership sites with care.
  • Cache commenters: on.
  • Cache REST API: on.
  • Cache login page: on.
  • Cache mobile: turn on only if your theme serves a different layout to phones.

Visit your site in a private browser window and check the response header. You should see a LiteSpeed cache hit on the second visit.

Step 4: Configure browser cache

Under Cache, then Browser, enable browser cache. This tells visitors' browsers to store static files, so returning visitors load pages even faster.

Step 5: Optimise images

Go to Image Optimization. Enable auto request and WebP replacement, then send an optimisation request from the summary tab. Images are processed in batches and replaced automatically.

Step 6: Enable page optimisation gradually

This is where problems can appear, so change one setting at a time and test after each:

  1. CSS minify: turn on, save, test your pages.
  2. JS minify: turn on, save, test.
  3. Lazy load images: turn on, and exclude your logo and main hero image if they appear late.
  4. Load JS deferred: can greatly improve scores, but may break sliders, menus or forms. Test carefully.
  5. CSS and JS combine: sometimes helpful, sometimes not with modern HTTP/2 and HTTP/3. Test both ways.

After each change, check your homepage, a blog post, contact forms, menus on mobile and, for shops, the cart and checkout.

Step 7: Clean up your database

Under Database, you can remove post revisions, auto drafts, spam comments and expired transients. Take a backup first, then run the cleanup.

Step 8: Set up purge rules

LiteSpeed Cache automatically purges relevant cached pages when you update content. Under Purge, you can adjust these rules. If you change your theme or menus and do not see the update, use the "Purge All" option from the admin bar.

Troubleshooting common LiteSpeed Cache issues

  • Layout looks broken: disable CSS combine or minify, purge all, and test again.
  • Menu or slider stops working: disable JS defer or add the problem script to the exclusion list.
  • Changes not showing: purge all caches, then clear your browser cache.
  • Cart or login issues on WooCommerce: ensure those pages are excluded from caching, which the plugin normally does automatically.
  • Contact form errors: some forms use security tokens; exclude the contact page from cache if needed.

How to measure the improvement

Re test with PageSpeed Insights and GTmetrix, and check real world performance on a phone using mobile data. Focus on Largest Contentful Paint and overall load time rather than chasing a perfect score. A site that feels fast for real Ugandan visitors is what matters.

Frequently asked questions

Does LiteSpeed Cache work on Apache or Nginx hosting?

Its optimisation features work on any server, but the core page caching requires LiteSpeed or OpenLiteSpeed. On other servers, choose a different caching plugin.

Is LiteSpeed Cache free?

Yes, the plugin is free. Some QUIC.cloud services have free quotas with paid options for larger usage.

Can I use LiteSpeed Cache with Cloudflare?

Yes. Many sites use both. Configure Cloudflare carefully so the two caches do not conflict, and purge both after major changes.

Will it help with SEO?

Faster pages improve user experience, which supports SEO. Speed alone will not rank a page, but it removes a common barrier.

Conclusion

LiteSpeed Cache is one of the best free tools for speeding up WordPress on LiteSpeed hosting. Install it, enable page caching, optimise images and adjust advanced settings one at a time with testing. All Baasa Cloud hosting plans run on LiteSpeed servers, and our support team can help you configure the plugin for your site.


← All posts Discuss on WhatsApp