Source

django-pim / sitetracker / signals.py

Full commit
1
2
3
4
5
6
from django.core.cache import cache
from django.utils.hashcompat import md5_constructor

def clear_server_list(sender, **kwargs):
    cache.delete('template.cache.server-list.%s' % md5_constructor(u'').hexdigest())
    cache.delete('template.cache.domain-admin.%s' % md5_constructor(u'').hexdigest())