Cache digests are a better way to handle fragment caching. It’s based on a Russian Doll scheme, meaning, when you have nested cached fragments and the nested content changes, only expire the cache for that content reusing the rest of the cache.
The cache-digest
is a technique that could be used with template so called Template digest
.Template digest that's added to the cache key is computed by taking an md5
of the contents of the entire template file. This ensures that your caches will automatically expire when you change the template file.