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