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;
 }