This commit is contained in:
Daniel Brendel
2025-07-11 12:52:40 +02:00
parent 84ddcbd9c7
commit f0bd80c02d
16 changed files with 68 additions and 12 deletions
+20
View File
@@ -964,4 +964,24 @@ class AdminController extends BaseController {
return back();
}
}
/**
* Handles URL: /admin/cache/clear
*
* @param Asatru\Controller\ControllerArg $request
* @return Asatru\View\JsonHandler
*/
public function clear_cache($request)
{
try {
CacheModel::clear();
return json(['code' => 200]);
} catch (\Exception $e) {
return json([
'code' => 500,
'msg' => $e->getMessage()
]);
}
}
}