123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\admin\controller\system;
-
- use app\common\basics\AdminBase;
- use app\common\server\JsonServer;
-
-
- class Cache extends AdminBase
- {
- public function cache()
- {
- if ($this->request->isAjax()) {
- \think\facade\Cache::clear();
- del_target_dir(app()->getRootPath().'runtime/file/export', true);
- return JsonServer::success('清除成功');
- }
- return view();
- }
- }
|