Speed up WordPress with LiteSpeed Cache
Our servers run LiteSpeed. The free LiteSpeed Cache (LSCache) plugin stores finished pages at the server, so repeat visits skip PHP and the database. Most WordPress sites load several times faster with it on.
Note: Use one page-cache plugin. Remove WP Super Cache, W3 Total Cache, or WP Rocket's page cache before turning this on.
Install it
- In wp-admin, check Plugins first. If LiteSpeed Cache is listed, activate it and skip to the settings.
- Otherwise go to Plugins → Add New, search for LiteSpeed Cache, click Install Now, then Activate.
Recommended settings
Go to LiteSpeed Cache → Settings (or Presets).
| Area | Setting | Value |
|---|---|---|
| Cache | Enable Cache | On |
| Cache | Cache Logged-in Users | Off |
| Cache | Cache Commenters | Off |
| Cache → TTL | Default Public Cache TTL | 604800 (7 days) |
| Cache → Purge | Purge All On Upgrade | On |
| Browser | Browser Cache | On |
| Page Optimization → CSS | CSS Minify | On, test first |
| Page Optimization → JS | JS Combine | Off until tested |
| Image Optimization | Auto request cron | On |
| Object | Object cache | Off, unless you've turned on Object cache in Account → Hosting → your site → WordPress → Manage → Speed and debug → Speed up this site |
Start with the Essentials preset if offered, test the site, then switch on more.
Clear the cache
Click LiteSpeed Cache in the top bar and choose Purge All. Do this after changing a theme, menu, or plugin.
Test
Open a page in a private window. View the response headers in your browser developer tools, or run:
curl -sI https://example.ca | grep -i x-litespeed-cache
x-litespeed-cache: hit means the page was served from cache. miss is normal on the first visit.
Pages that should not be cached
Under Cache → Excludes, list cart, checkout, and account URLs. LSCache has built-in rules for WooCommerce. See Running a WooCommerce store on Barbrick.
If something goes wrong
- Layout looks broken: switch off CSS/JS Combine and Minify, then purge.
- Changes don't appear: purge all, then clear your browser cache.
- Logged-in shoppers see stale carts: confirm WooCommerce exclusions.
- Plugin fights another: see Find a plugin causing problems.
Still stuck? Ask us and we'll walk you through it.