Merge pull request #9719 from creative-commoners/pulls/4/doc-partial-caching-aggregates-gotcha

DOC Document partial template caching aggregates recommendation
This commit is contained in:
Guy Marriott 2020-10-04 16:41:29 -07:00 committed by GitHub
commit a6529dd202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,13 @@ template render.
[/warning]
[warning]
If you use the same aggregate in a template more than once, it will be recalculated every time
unless you move it out into a separate
[controller method](../templates/partial_template_caching/#cache-key-calculated-in-controller).
[Object Caching](../templates/caching/#object-caching) only works for single variables and not for chained expressions.
[/warning]
## Purposely stale data