You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a warning in doc to mention that any defined variable inside {{ cache }} tags wont be available outside of them when the content is fetched from the cache...
It could be confusing from a DX perspective, as the first time the tag is executed (ie no cache), variable will be available outside, but then, it wont...
as an example, dont do this :
{{ myEntries = [] }}
{{ cache for="24 hours" }}
{{ myEntries = { collection:xxx } {{# whatever #}}
{{ /cache }}
{{# here my entries will only be set at the first rendering but then it will be an empty array #}}
{{ myEntries }}
...
{{ /myEntries }}
The text was updated successfully, but these errors were encountered:
Add a warning in doc to mention that any defined variable inside {{ cache }} tags wont be available outside of them when the content is fetched from the cache...
It could be confusing from a DX perspective, as the first time the tag is executed (ie no cache), variable will be available outside, but then, it wont...
as an example, dont do this :
The text was updated successfully, but these errors were encountered: