from django.core.signals import post_save
from django.core.cache import cache

def invalidate_cache(sender, **kwargs):
    cache.delete(sender.get_absolute_url())
post_save.connect(invalidate_cache, sender=UnderlyingModel)
Removing specific items from Django's cache?