WordPress · LiteSpeed · Caching

How to set up LiteSpeed Cache for WordPress safely

LiteSpeed Cache is fast on a LiteSpeed server, but switching every option on breaks sites. The order I set it up in, what to test and what to keep uncached.

Mohit Goyal 5 min read
How to set up LiteSpeed Cache for WordPress safely

To set up LiteSpeed Cache for WordPress, first confirm your host runs a LiteSpeed web server, install the LiteSpeed Cache plugin, switch on page caching and measure, then add CSS, JavaScript and image optimisation one setting at a time while testing forms and checkout after each change. The page cache is the big win, and the optimisation settings are where sites break.

I use this stack, WordPress on Bricks with LiteSpeed, for the go.procol.ai ad landing pages I built at Procol. Ad landing pages are a good test of a cache setup: paid traffic arrives in bursts, mostly on phones, and every visitor who waits is a click you paid for and lost.

Why use LiteSpeed Cache instead of another caching plugin?

Because on a LiteSpeed server it caches at the server level. Most caching plugins write pages to files that PHP or a server rule then serves. LiteSpeed Cache tells the web server itself which pages to store, and the server answers repeat visits without starting WordPress at all. Many shared and cloud hosts, Hostinger among them, run LiteSpeed web servers, so the plugin is often the natural choice there.

On other servers I use other tools. Ravens Ait uses WP Rocket for caching and has a reported PageSpeed score of 94 or higher. The right plugin is the one that matches your server.

Which LiteSpeed Cache settings should you start with?

SettingStart withWhy
Page cacheOnThe main speed gain on a LiteSpeed server
Cache logged-in usersOffLogged-in pages are personal and change often
Browser cacheOnReturning visitors reuse static files
CSS and JS minifyOn, then testUsually safe, small gain
CSS and JS combineOff at firstMost likely to break layouts or scripts
Load JS deferred or delayedTest carefullyCan break sliders, popups, forms and tracking
Lazy load imagesOn, except the heroSaves bytes below the first screen
Image optimisationOptionalUses QUIC.cloud; fine if you do not already optimise at upload
Object cacheOnly if the host provides Redis or MemcachedSpeeds up database-heavy admin and shop pages
CrawlerOff unless the host allows itWarms the cache, but uses server resources

In what order should you switch settings on?

Rendering diagram…

Do not switch everything on at once

If you enable ten optimisations and the menu stops working, you do not know which one did it. Change one setting, purge, test, then move on.

What should you exclude from the cache?

Anything that is different for each visitor.

  • Cart, checkout and My Account. The plugin recognises WooCommerce and handles these, but confirm it with a real test order.
  • Pages that vary by country or currency. If you show content by location, as my Geo Targeting for Bricks Builder plugin does, those pages must not be served from one shared cached copy. See how to show different content by country in Bricks Builder.
  • Pages with one-time tokens, such as some booking or payment forms.
  • Preview and staging URLs.

Why test forms after every caching change?

Because cache layers can break forms without any visible error. On two client sites, Samko Holdings and Crowne Plaza London Kingston, a GoDaddy cache layer swallowed form submissions. The form looked fine and the visitor saw a thank-you message, but nothing arrived. Upgrading PHP from 8.0 to 8.3 fixed both. That was not LiteSpeed, but the lesson applies to any cache: when submissions vanish, check the caching layer before the form plugin.

On campaign landing pages this matters more than speed scores. A fast page with a broken form is worse than a slow page that works.

How do you set it up step by step?

  1. 1

    Check the server

    Ask your host or look for a LiteSpeed server response header. Without it, use the plugin only for optimisation, or choose another cache.

  2. 2

    Remove other caches

    Uninstall other page cache plugins and clear their leftover files.

  3. 3

    Measure

    Run PageSpeed Insights on the homepage and two key landing pages on mobile and save the reports.

  4. 4

    Enable page cache

    Leave logged-in caching off. Purge, then test forms, login and checkout.

  5. 5

    Add optimisation slowly

    Minify first, then lazy load with the hero excluded, then try combine or defer one at a time.

  6. 6

    Set purge rules

    Make sure editing a page, post or product purges that page and its listings.

  7. 7

    Export the settings

    Save the working configuration so you can restore or reuse it.

What if the site is still slow?

Then caching is not the bottleneck. Heavy builders, oversized images and third-party scripts slow the parts a cache cannot fix, such as the browser's work after the HTML arrives. Start with how to fix Core Web Vitals on a WordPress site, and if the site runs on Elementor, how to speed up an Elementor site.

I set up caching as part of my technical SEO and Core Web Vitals service. Send me the URL and your host, and I will reply with the settings I would start with.

Frequently asked

Does LiteSpeed Cache work on any host?+

The page cache needs a LiteSpeed web server or the QUIC.cloud CDN in front of the site. The optimisation features, such as minifying CSS and lazy loading images, work on other servers too. Check with your host which server it runs.

Is LiteSpeed Cache better than WP Rocket?+

On a LiteSpeed server it caches at the server level, which is hard to beat. On Apache or Nginx hosting, WP Rocket is the simpler choice. I use WP Rocket on Ravens Ait and Whitfield Service Station, and LiteSpeed on LiteSpeed hosting.

Can I use LiteSpeed Cache with WooCommerce?+

Yes. The plugin recognises WooCommerce and keeps carts, checkout and account pages out of the public cache. Test a full order after setup anyway.

Why did my site break after enabling LiteSpeed Cache?+

Usually CSS or JavaScript optimisation, not the page cache. Combining, deferring or delaying scripts can change the order they run in. Switch the last optimisation off, purge the cache and switch settings back on one at a time.

Should I run two caching plugins at once?+

No. Two page caches fight over the same pages and make problems hard to trace. Pick one, and remove the other completely.

Mohit Goyal

Written by Mohit Goyal

Senior Web Developer in Gurugram, India. 100+ fast, SEO-friendly sites shipped in 4+ years with Next.js, React and WordPress, including the procol.ai rebuild. Send me your next project.

Keep reading

Let's build

Have a site that needs to be fast, rank and convert?

Open to Work. Usually replies within a day.