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