Migrated issue, originally created by Michael Bayer (@zzzeek)
Unfortunately there is another one. That one is related to <%block> tag (both anonymous and named).
FAILS: <%block cached="True" cache_key="${route_args.locale}">
WORKAROUND: <%block cached="True" cache_key="${context.get('route_args').locale}">
The bug happens when context variable (route_args) is first used in cache_key (and not anywhere else in template). I have similar logic using in <%page> directive and it works just fine there.
Migrated issue, originally created by Michael Bayer (@zzzeek)
Unfortunately there is another one. That one is related to <%block> tag (both anonymous and named).
FAILS: <%block cached="True" cache_key="${route_args.locale}">
WORKAROUND: <%block cached="True" cache_key="${context.get('route_args').locale}">
The bug happens when context variable (route_args) is first used in cache_key (and not anywhere else in template). I have similar logic using in <%page> directive and it works just fine there.