I started using the {% cache %} tag and would like to know what the best practices are:
.
Regarding performance:
For example does it make sense..
- ..to cache the whole template, or is it better to enclose each query separately?
- ..to combine the cache-tag with other supported caches?
- ..to cache non-dynamic content?
.
Regarding development:
I saw the tip to use: {% cache unless craft.config.devMode %}. Is there anything else to consider during development?
templatecachestable, and a list of elements that are used in each cache in thetemplatecacheelementstable, making it really easy to identify which caches should be deleted when you update/delete an element. – Brandon Kelly Jun 12 '14 at 23:43