private function on_deleting(midgard_attachment $attachment, $params) { midgardmvc_core_helpers_attachment::remove_from_cache($attachment); }