From 24204b1cf818cc02d475997e8a5958fd8ce89b08 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 14 Jun 2019 18:51:50 +0300 Subject: [PATCH] Flextype Box Plugin: Admin #125 #117 --- site/plugins/admin/app/Controllers/SettingsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/plugins/admin/app/Controllers/SettingsController.php b/site/plugins/admin/app/Controllers/SettingsController.php index 18a8e3e6..d1d4cc6c 100644 --- a/site/plugins/admin/app/Controllers/SettingsController.php +++ b/site/plugins/admin/app/Controllers/SettingsController.php @@ -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')); }