<s> from api . caching . tasks import ban_url <EOL> from framework . postcommit_tasks . handlers import enqueue_postcommit_task <EOL> from modularodm import signals <EOL> @ signals . save . connect <EOL> def ban_object_from_cache ( sender , instance , fields_changed , cached_data ) : <EOL> if hasattr ( instance , '<STR_LIT>' ) : <EOL> enqueue_postcommit_task ( ( ban_url , ( instance , ) ) ) </s>
