From ad570688c90ca5942f66fcafc3479280de4234ca Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 22 Feb 2020 16:24:16 +0100 Subject: [PATCH] Add cache/plugins to clearCache functions --- system/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/functions.php b/system/functions.php index 8db4a727..8a6dc980 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1129,9 +1129,10 @@ function clearCache() $cache->delete('template_ini' . $template_name); } - deleteDirectory(CACHE . 'signatures', array('.htaccess', 'index.html'), true); - deleteDirectory(CACHE . 'twig', array('.htaccess', 'index.html'), true); - deleteDirectory(CACHE, array('signatures', 'twig', '.htaccess', 'index.html'), true); + deleteDirectory(CACHE . 'signatures', ['index.html'], true); + deleteDirectory(CACHE . 'twig', ['index.html'], true); + deleteDirectory(CACHE . 'plugins', ['index.html'], true); + deleteDirectory(CACHE, ['signatures', 'twig', 'plugins', 'index.html'], true); return true; }