#NEWLINE# def _clear_cache( sender , changes ) : #NEWLINE# #INDENT# for ( model , operation ) in changes : #NEWLINE# #INDENT# if ( isinstance ( model , Account ) and ( operation != 'update' ) ) : #NEWLINE# #INDENT# cache . delete ( 'status-account' ) #NEWLINE# #UNINDENT# if ( isinstance ( model , Node ) and ( operation != 'update' ) ) : #NEWLINE# #INDENT# cache . delete ( 'status-node' ) #NEWLINE# #UNINDENT# if ( isinstance ( model , Topic ) and ( operation != 'update' ) ) : #NEWLINE# #INDENT# cache . delete ( 'status-topic' ) #NEWLINE# #UNINDENT# if ( isinstance ( model , Reply ) and ( operation != 'update' ) ) : #NEWLINE# #INDENT# cache . delete ( 'status-reply' )