def clear_usersettings_cache(sender, **kwargs):
    """
    Clears the cache (if primed) each time a ``UserSettings`` is saved or deleted
    """
    instance = kwargs['instance']
    try:
        del USERSETTINGS_CACHE[instance.site.pk]
    except __HOLE__:
        pass
dataset/ETHPy150Open mishbahr/django-usersettings2/usersettings/models.py/clear_usersettings_cache