* admin: clear dao cache after toggling cache switch.
This commit is contained in:
@@ -593,7 +593,7 @@ class admin extends control
|
||||
$cache = form::data()->get();
|
||||
$this->loadModel('setting')->setItem('system.common.global.cache', json_encode($cache));
|
||||
|
||||
if(empty($cache->dao['enable'])) $this->dao->clearCache();
|
||||
$this->dao->clearCache();
|
||||
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user