#NEWLINE# def clear_usersettings_cache( sender , **kwargs ) : #NEWLINE# #INDENT# '\n    Clears the cache (if primed) each time a ``UserSettings`` is saved or deleted\n    ' #NEWLINE# instance = instance [ 'instance' ] #NEWLINE# try : #NEWLINE# #INDENT# del USERSETTINGS_CACHE [ instance . site . pk ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# pass