Skip to content

Caching strategies

A good caching strategy makes websites faster and absorbs traffic peaks without serving outdated content.

Slow under load

Without a cache, the server rebuilds every page on every request. During campaigns, press coverage or seasonal peaks, pages then slow down or fail. That hurts Core Web Vitals, rankings and conversion.

The layers of caching

  • Browser cache: images, fonts, CSS and JavaScript stored long-term, with hashed file names for instant updates

  • Full-page cache: pages served as finished HTML, such as Statamic's static caching

  • Object cache: database queries and computations held in memory, such as Redis

  • OPcache: precompiled PHP code

  • CDN: delivery from servers close to the user

Editorial corporate websites gain most from a full-page cache, portals with many personalised pages from an object cache.

Cache invalidation

Publishing an article regenerates only the affected pages. The basket, log-in and customer portal are never cached for all users.

Approach

After measuring loading times, server response times and the slowest queries, we configure the right layers and confirm the effect with load tests and Lighthouse.

Caching often makes a larger, more expensive server unnecessary.

Project enquiry

Back to top