def update_static_block_cache(instance):
    cache.delete("%s-static-block-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, instance.id))

    for category in instance.categories.all():
        cache.delete("%s-category-inline-%s" % (settings.CACHE_MIDDLEWARE_KEY_PREFIX, category.slug))
Deletes all static block relevant caches.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/caching/listeners.py/update_static_block_cache