+ [refac] add a method to clear dao cache.

This commit is contained in:
liugang
2024-08-02 15:24:27 +08:00
committed by 孙广明
parent 3880381499
commit da8a16228f
6 changed files with 36 additions and 4 deletions
+13
View File
@@ -614,4 +614,17 @@ class admin extends control
$this->view->title = $this->lang->admin->cache;
$this->display();
}
/**
* 清除数据缓存。
* Clear data cache.
*
* @access public
* @return void
*/
public function ajaxClearCache()
{
$this->dao->clearCache();
return $this->send(array('result' => 'success', 'message' => $this->lang->admin->clearSuccess, 'load' => true));
}
}