mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
a6529dd202
@ -107,6 +107,13 @@ template render.
|
|||||||
|
|
||||||
[/warning]
|
[/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
|
## Purposely stale data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user