Skip to content
Cloud docs

How caching works on the platform

Four caches sit between a visitor and your database. Knowing which is which explains most surprises.

Updated 20 September 20261 min readBeginner

Caching is why a managed site answers in tens of milliseconds. It is also why an edit sometimes seems not to appear. These are the layers, in the order a request meets them.

The layers

LayerHoldsCleared by
Browser cacheStatic assets on the visitor's deviceThe visitor, or a new file name
Edge cacheImages, CSS and JavaScript at the CDNPurge from the dashboard
Full-page cacheRendered HTMLPublishing a post, or a purge
Object cacheQuery results and transients, in RedisFlushing the object cache
OPcacheCompiled PHPDeploying code, or a PHP restart

What is never cached

  • Requests from logged-in users.
  • Cart, checkout and account pages.
  • Anything with a query string that is not on the allow-list.
  • POST requests, so forms always reach PHP.
Automatic purging

Publishing or updating a post clears the page it produces, the archives it appears in and the home page. A full purge is rarely necessary.

Was this article helpful?

Related articles