LiteSpeed Cache explained
Your Barbrick hosting runs on the LiteSpeed web server. The free LiteSpeed Cache plugin for WordPress talks to it directly. The result is that most visitors get a saved copy of each page instead of waiting for WordPress to build it.
This article explains the idea and the settings that matter. For install steps, see Speed up WordPress with LiteSpeed Cache.
What caching does
Without caching, every visit makes WordPress run PHP and ask the database, then assemble the page. That might take half a second or more. With page caching, the server builds the page once, keeps the result, and hands the same copy to the next visitor in a few milliseconds.
Cached pages are the same for everyone. So logged-in users, carts, and checkout pages are not cached. The plugin handles that.
Turn it on from your control panel
- Open Account → Hosting → your site → WordPress, click Manage next to the site, and open Speed and debug.
- Under Caching and speed score, click Speed up this site. The Speed up WordPress page opens.
- Under Speed tools, switch on LiteSpeed Cache. This installs the plugin if it isn't there yet. Once it's on, Clear cache appears.
- For database-heavy sites such as shops, also switch on Object cache.
- Click Measure now on the score card to see the result. Before and after compares speed before and after each change, and Speed changes lists what was changed.
AccelerateWP page cache is a second page cache. It shows Unavailable while LiteSpeed Cache is on, because two page caches conflict. If both are ever on, the score card shows Fix it.
You can also get there from Performance → Speed settings → WordPress acceleration → Choose a site.
Check that it's working
- Open your site in a private window.
- Press
F12, open the Network tab, and reload. - Click the first request (your page). Look at Response Headers.
x-litespeed-cache: hit
| Header value | Meaning |
|---|---|
hit |
Served from cache. Good |
miss |
Built fresh and now stored. Reload and it should show hit |
| No header at all | The plugin is off, or the page isn't cacheable (logged in, or cookies present) |
Settings that matter
Open WordPress admin → LiteSpeed Cache → Settings. Defaults are good for most sites.
| Setting | Where | Recommended | Why |
|---|---|---|---|
| Enable Cache | Cache → Cache | On | The main switch |
| Cache Logged-in Users | Cache → Cache | Off | Logged-in pages are personal |
| Cache Mobile | Cache → Cache | Off unless your mobile layout differs from desktop | Separate caches double storage |
| Default Public Cache TTL | Cache → TTL | 604800 (7 days) | How long a page stays cached. Shorter if content changes often |
| Default Private Cache TTL | Cache → TTL | 1800 (30 min) | For per-user content |
| Purge All on Upgrade | Cache → Purge | On | Clears cache when you update plugins |
| Do Not Cache URIs | Cache → Excludes | Add cart, checkout, account pages | WooCommerce adds these for you. Check custom ones |
| CSS Minify, JS Minify | Page Optimization | On, then test | Shrinks files. Turn off if something breaks |
| CSS Combine, JS Combine | Page Optimization | Off at first | Often breaks layouts, and with HTTP/2 or 3 gives little gain |
| Load CSS Asynchronously | Page Optimization → CSS | Test it | Can improve LCP, can cause a flash of unstyled content |
| Lazy Load Images | Page Optimization → Media | On | Loads images when visitors scroll to them |
| Add Missing Sizes | Page Optimization → Media | On | Reduces layout shift (CLS) |
| Object Cache | Cache → Object | Only if you've switched on Object cache on the Speed up WordPress page, described below | Helps database-heavy sites |
| Browser Cache | Browser | On | Visitors keep files locally for repeat visits |
Settings to leave alone unless you have a reason
- Crawler. It visits your pages to rebuild the cache and uses CPU. Leave it off. On small sites it isn't needed.
- Guest Mode and QUIC.cloud services. Optional extras that use QUIC.cloud, which has a free tier with monthly limits. You don't need them for good speed.
- Database optimization buttons. Take a backup first. See Keep your database fast.
Don't run two caching plugins
Use LiteSpeed Cache or another page-cache plugin, never both. Conflicts cause stale pages and errors.
Purge the cache
Purge after changes that don't show. Click Clear cache on the Speed up WordPress page, or in wp-admin, hover the LiteSpeed icon in the top bar and click Purge All. See Site shows an old version after changes.
Safe order for changes
- Turn on cache, test.
- Turn on minify, test.
- Turn on lazy load and missing sizes, test.
- Try async CSS, test.
- Leave combine off unless a test shows a clear gain.
Test after each step. See Test your site's speed properly.
If something goes wrong
| Problem | Fix |
|---|---|
| Layout broken after a setting | Turn off the last setting, purge, retest |
| Changes don't appear | Purge all. Also clear your browser cache |
| Shop cart or checkout shows wrong content | Make sure those pages are in Do Not Cache URIs |
Header x-litespeed-cache missing |
Check that the plugin is active and that you're not logged in |
Still stuck? Ask us and we'll walk you through it.
