* admin: refactor storage of cache.

This commit is contained in:
liugang
2024-05-23 14:22:14 +08:00
committed by caoyanyi
parent e504bc5742
commit 1d721555fd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -591,7 +591,7 @@ class admin extends control
if(!extension_loaded('apcu')) return $this->send(array('result' => 'fail', 'message' => $this->lang->admin->apcuNotFound));
$cache = form::data()->get();
$this->loadModel('setting')->setItem('system.common.cache.enableDAO', $cache->enable);
$this->loadModel('setting')->setItem('system.common.global.cache', json_encode($cache));
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true));
}