Caching WordPress on shared hosting

How page caching makes WordPress dramatically faster, how to choose and configure a caching plugin, and the pages that must never be cached.

How-to guideIntermediate2 min readUpdated

Without caching, WordPress runs PHP and database queries to build every page on every visit. With page caching, it builds each page once, saves the result, and serves that copy to the next visitors — often several times faster, using a fraction of the resources.

Choose one caching plugin

Install one well-maintained page caching plugin. Running two caching plugins together causes conflicts, broken layouts and stale pages.

On Traxio, LiteSpeed Cache is the natural choice: it works with the server’s own LSCache rather than caching in PHP. Speeding up WordPress with LSCache For busy admin areas and shops, add Redis object caching on top. Using Redis object caching with WordPress

Settings that matter

SettingRecommendation
Page cachingOn
Cache for logged-in usersOff
Browser caching / expiry headersOn
Compression (gzip/Brotli)On, if the plugin offers it
Minify CSS/JSTest carefully; turn off if anything breaks
Combine filesUsually unnecessary with HTTP/2; leave off
Preload cacheOn, for small sites

Never cache

  • /wp-admin/ and the login page
  • Basket, checkout and account pages on shops
  • Pages showing personalised content

Shop plugins usually register these exclusions automatically; check they’re listed.

After changes, clear the cache

Edited a page and can’t see the change? Clear the plugin’s cache, and your browser’s.

Caching isn’t everything

If uncached pages take several seconds to build, find the slow plugin too. Why is WordPress slow? How to find and fix the cause

Not hosting with Traxio yet? WordPress hosting from 99p a month is free for 30 days with no card, then £0.99 a month.

Popular

Tip: press / to search from any pageSee all results