cant eval args in cache_key in <%block> #180
Closed
Labels
Comments
Changes by Michael Bayer (@zzzeek):
|
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: Milestone 0.6 deleted |
Changes by Michael Bayer (@zzzeek):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: