Ability to leverage cache key generation for cache templatetag
|Reported by:||Alex hayes <alex@…>||Owned by:||nobody|
|Component:||Core (Cache system)||Version:||1.4|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (5)
comment:1 Changed 3 years ago by Alex hayes <alex@…>
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset