diff --git a/includes/functions.php b/includes/functions.php index d63218b..a6ca14f 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -494,10 +494,17 @@ 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'); - is_array($plugin_run_result = Plugins::getInstance()->run('delete_cache_func', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook + #ignore kleeja_log in dev stage. + if(defined('DEV_STAGE')) + { + array_push($exceptions, 'kleeja_log.log'); + } + + is_array($plugin_run_result = Plugins::getInstance()->run('delete_cache_func', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook //handle array of cached files if(is_array($name)) @@ -1692,4 +1699,4 @@ function remove_from_htaccess($unique_id) return true; -} \ No newline at end of file +}