'Clear the cached template when the model is saved'

@staticmethod
@receiver(post_save, sender=MicrositeTemplate)
def clear_cache(sender, instance, **kwargs):

    cache_key = ('template_cache.' + fasthash(((instance.microsite.site.domain + '.') + instance.template_uri)))
    cache.delete(cache_key)
