protected function afterDelete() { Yii::app()->getCache()->clear($this->menu->code); return parent::afterDelete(); }