Caching

Caching is one of the biggest factors in how fast your site loads. This covers how Templ's cache works, the CDN, and more advanced use cases.

In this section

  • How caching works - what Templ's cache does, how to check the cache status, and how to purge or disable it
  • Templ CDN - enable the Templ CDN for static files
  • Advanced caching - purge and flush the cache programmatically
  • WP Rocket - use WP Rocket instead of Templ Cache for advanced optimizations