1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-20 03:41:27 +02:00

Flextype Box Plugin: Admin #125 #117

This commit is contained in:
Awilum
2019-06-14 18:51:50 +03:00
parent dbbe2e4380
commit 24204b1cf8

View File

@@ -136,6 +136,8 @@ class SettingsController extends Controller
public function clearCacheProcess(/** @scrutinizer ignore-unused */ Request $request, Response $response) : Response
{
$this->cache->clear();
Filesystem::has(PATH['cache'] . '/twig') and Filesystem::deleteDir(PATH['cache'] . '/twig');
$this->flash->addMessage('success', __('admin_message_cache_files_deleted'));
return $response->withRedirect($this->router->pathFor('admin.settings.index'));
}