Update functions.php

This commit is contained in:
munjoob
2018-12-12 19:28:43 +00:00
committed by GitHub
parent 8dbb02db3f
commit fa95ad0c69

View File

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