def apphook_post_delete_title_checker(instance, **kwargs):
 from cms.cache import invalidate_cms_page_cache
 invalidate_cms_page_cache()
 if instance.page.application_urls:
  request_finished.connect(trigger_restart, dispatch_uid=DISPATCH_UID)

def apphook_post_delete_title_checker ( instance , ** kwargs ) : from cms . cache import invalidate_cms_page_cache invalidate_cms_page_cache ( ) if instance . page . application_urls : request_finished . connect ( trigger_restart , dispatch_uid = DISPATCH_UID )
check if this was an apphook .