1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 10:46:06 +02:00

Add "clear cache" button to admin

This commit is contained in:
Toby Zerner
2018-11-22 08:03:43 +10:30
parent 6654894da1
commit 2ef66ac716
4 changed files with 86 additions and 6 deletions

View File

@@ -301,4 +301,11 @@ return function (RouteCollection $map, RouteHandlerFactory $route) {
'favicon.delete',
$route->toController(Controller\DeleteFaviconController::class)
);
// Clear the cache
$map->delete(
'/cache',
'cache.clear',
$route->toController(Controller\ClearCacheController::class)
);
};