1 2 3 4 5 | import hashlib
from django.core.cache import cache
def delete_template_fragment_cache(fragment_name='', *args):
cache.delete('template.cache.%s.%s' % (fragment_name, hashlib.md5(u':'.join([arg for arg in args])).hexdigest()))
|
More like this
- PK->objects in view signature by AdamKG 5 years, 1 month ago
- invalidation of cache-template-tag cache by bram 3 years, 11 months ago
- TemplateZipFile by fcurella 1 year, 5 months ago
- get_model_or_404 by blackbrrr 4 years, 8 months ago
- Template tag to clear cached template fragment by joao.coelho 3 years, 6 months ago
Comments