def update_cached_instance(sender, instance, **kwargs):
 if (not hasattr(instance, 'cache_instance')):
  return
 sender.cache_instance(instance)

def update_cached_instance ( sender , instance , ** kwargs ) : if ( not hasattr ( instance , 'cache_instance' ) ) : return sender . cache_instance ( instance )
re-cache the given instance in the idmapper cache .