#19320: Ability to leverage cache key generation for cache templatetag
-------------------------------------+--------------------
Reporter: Alex hayes <alex@…> | Owner: nobody
Type: New feature | Status: new
Component: Core (Cache system) | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+--------------------
Its currently not possible to leverage the code that generates a cache key
in templatetag '''cache''' as its embedded inside
`django.templatetags.cache.CacheNode.render`.
It would be useful to be able to generate these cache keys if you need to
programatically delete them and it appears there are a number of gist's
and other solutions floating around, but none of them are done in a DRY
nature.
I propose that a method `get_cache_key` be part of the
`django.templatetags.cache` module.
--
Ticket URL: <https://code.djangoproject.com/ticket/19320>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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 https://groups.google.com/groups/opt_out.