This commit is contained in:
molong
2022-05-12 16:59:39 +08:00
parent ca1fbd6fd1
commit fe524c3871
4 changed files with 61 additions and 28 deletions

View File

@@ -106,7 +106,7 @@ class Index extends Base {
*/
public function clear() {
if ($this->request->isPost()) {
$clear = input('post.clear/a', array());
$clear = $this->request->param('clear', []);
foreach ($clear as $key => $value) {
if ($value == 'cache') {
\think\facade\Cache::clear(); // 清空缓存数据