before adding a new ticket I just wanted to discuss this issue:
when using template-caching it´s sometimes useful to have a variable for the
"fragement name".
e.g., I want to prefix all caching-variables with "myapp_userid", because I
need to delete alle user-related caching-variables at some point where I
don´t have the necessary caching-variables (besides the user-id).
so, instead of writing:
{% cache 500 "fragment_name" request.user.id other_vars %}
I´d like to have
{% cache 500 "fragment_name_including_user_id" other_vars %}
I just hacked the templatetag "cache" and it seems to be quite easy using a
context-variable for the fragment name.
{% cache 500 "fragment_name" cache_var %}
{% cache 500 fragment_var cache_var %}
what do you think?
regards,
patrick
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.