* [bug#57812,1h] fix can't close cache.

This commit is contained in:
liugang
2024-12-09 09:21:27 +08:00
committed by 刘刚
parent 3094754644
commit 4792c1dad1
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ class cache extends control
$this->loadModel('setting')->setItems('system.common.cache', $cache);
$this->setting->setItems('system.common.redis', $redis);
$this->cache->clear();
$this->cache->clear($cache->enable);
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true));
}
@@ -99,7 +99,7 @@ class cache extends control
*/
public function flush()
{
$this->cache->clear();
$this->cache->clear($this->config->cache->enable);
return $this->send(array('result' => 'success', 'message' => $this->lang->cache->clearSuccess, 'load' => true));
}
}