/** * 保存之后,重建缓存 */ public function afterSave() { parent::afterSave(); $this->cache->set($this->getRecordCacheKey(), $this['value'], 86400); }
public function afterSave() { parent::afterSave(); wei()->curUser->refresh($this); $this->clearRecordCache(); }