From fa95ad0c6944e81b52337b3884aa5f412549af7c Mon Sep 17 00:00:00 2001 From: munjoob <35959208+munjoob@users.noreply.github.com> Date: Wed, 12 Dec 2018 19:28:43 +0000 Subject: [PATCH] Update functions.php --- includes/functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index d63218b..5d5f744 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -495,7 +495,8 @@ function fetch_remote_file($url, $save_in = false, $timeout = 20, $head_only = f function delete_cache($name, $all=false) { #Those files are exceptions and not for deletion - $exceptions = array('.htaccess', 'index.html', 'php.ini', 'web.config'); + global $except; + $exceptions = empty($except) ? array('.htaccess', 'index.html', 'php.ini', 'web.config'):$except; is_array($plugin_run_result = Plugins::getInstance()->run('delete_cache_func', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook @@ -1692,4 +1693,4 @@ function remove_from_htaccess($unique_id) return true; -} \ No newline at end of file +}