When a PartialCache gets created, it is caching the Template by its name and without the used parse mode.
# from templates/index.liquid
{% render "snippet" %} # parse the template in Lax mode
# from sections/product.liquid
{% render "snippet" %} # loads the previously parsed template that is parsed in Lax mode. (this should be using strict mode)
How are you solving this?
Add the ParseContext#error_mode value to the PartialCache's cache key to add more context.
What are you trying to solve?
When a
PartialCache
gets created, it is caching theTemplate
by its name and without the used parse mode.How are you solving this?
Add the
ParseContext#error_mode
value to thePartialCache
's cache key to add more context.