From d0d77b8775677cb864e220866dda58f8118c1f36 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 15 Feb 2020 02:40:16 +0100 Subject: [PATCH] Fix index.html deleting on cacheClear() --- system/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/functions.php b/system/functions.php index 787c4579..350341e9 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1122,9 +1122,9 @@ function clearCache() $cache->delete('template_ini' . $template_name); } - deleteDirectory(CACHE . 'signatures', array('.htaccess'), true); - deleteDirectory(CACHE . 'twig', array('.htaccess'), true); - deleteDirectory(CACHE, array('signatures', 'twig', '.htaccess'), true); + 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); return true; }