Q: How does the system provide advanced caching?
A: With cache blocks. A {cache-block} in a template caches one part of the page, such as the menu or the footer, and the same block can be used on many pages. Its keys decide which pages share a copy; expiry, subtree_expiry or the content expiry decide when it is made again. The template-block cache is on by default ([TemplateSettings] TemplateCache=enabled).
The caching cookbook shows cache blocks with keys and expiry, and when to turn the view cache off for one template.
Historical. The earlier answer also suggested ESI blocks through the eZ SI extension. Exponential has no ESI; for whole pages use the cache layers described in How does the system cache pages?.
Contributors
- Graham Brookins Updated Maintainer
Comments
Add a comment