Cache Tag Does Not Render Strings #8394
Replies: 2 comments
-
Is that {{ cache }} tag in a layout, a template, or a partial? If you move it elsewhere in your template stack does it work? |
Beta Was this translation helpful? Give feedback.
-
It's in a template. After testing some more, it appears the Is this intended behavior and I'm abusing something here? Or maybe a bug? Not quite sure... 😄 I guess a workaround could be to put |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an Antlers template that uses a user-scoped cache tag to render HTML content wrapped in partials. For some reason, Antlers renders obscure IDs like
__literalReplacement::_3bc4ba0c73ddc55b90df9094c7d2676e
(cache identifier?) instead of the intended strings.Does anyone have a tip on what could be wrong here?
Shortened template example:
First render (uncached):
Hello Jon Doe
Subsequent renders (cached):
__literalReplacement::_3bc4ba0c73ddc55b90df9094c7d2676e
Beta Was this translation helpful? Give feedback.
All reactions