Opens in a new tab

What website caching does—and what it should not cache

Published: 11 June 2019
Topic: Website Performance

Caching stores something that has already been generated or downloaded so it can be reused. On a WordPress website, this can reduce repeated work and help visitors receive pages more quickly.

Different caches do different jobs

A page cache can reuse generated HTML instead of asking WordPress to rebuild the same public page for every visit. A browser cache can reuse files such as images and styles on later visits. Other caches operate at the database or content-delivery layer. They are related tools, not interchangeable switches.

The visitor’s browser does not run WordPress PHP to construct a page. That work normally happens on the server, which sends a response to the browser.

Protect personalised content

A public article is a good candidate for page caching. A basket, checkout, account area or personalised response needs the correct exclusions and variation rules. Reusing the wrong cached response can show stale information or another visitor’s content.

Use the hosting setup you already have

Check what your host or platform provides before adding another caching plugin. Overlapping systems can make troubleshooting harder. Decide which system controls page caching and how it is cleared after content changes.

Test both speed and correctness

  • Check the site as a logged-out visitor.
  • Confirm edited content appears after the appropriate cache is cleared.
  • Test forms, login and any ecommerce journey.
  • Compare an initial request with subsequent cached requests.

Caching cannot compensate for every slow query, oversized image or heavy third-party script. Treat it as one part of a measured performance setup, with clear ownership when something needs updating.

Website caching
Back to Growth Hub