Skip to content

cant eval args in cache_key in <%block> #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sqlalchemy-bot opened this issue Jan 13, 2012 · 5 comments
Closed

cant eval args in cache_key in <%block> #180

sqlalchemy-bot opened this issue Jan 13, 2012 · 5 comments
Labels
bug Something isn't working caching low priority

Comments

@sqlalchemy-bot
Copy link

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.

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed title from "cant eval args in cache_keyin <%block>" to "cant eval args in cache_key in <%block>"

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

it's a new feature: 2879f8b

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot
Copy link
Author

Michael Bayer (@zzzeek) wrote:

Milestone 0.6 deleted

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • removed milestone (was: "0.6")

@sqlalchemy-bot sqlalchemy-bot added bug Something isn't working low priority caching labels Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working caching low priority
Projects
None yet
Development

No branches or pull requests

1 participant