From: friendica Date: Fri, 3 May 2013 04:59:20 +0000 (-0700) Subject: optimise cachefile logic - still not sure why the cachefile profiling was getting... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed5768c4a316172e944ba0ea9fbd8ee15973ed1b;p=friendica.git optimise cachefile logic - still not sure why the cachefile profiling was getting triggered on a site with no cachefile configured --- diff --git a/boot.php b/boot.php index 5e50fa17a9..cf4a7abfb6 100644 --- a/boot.php +++ b/boot.php @@ -2099,10 +2099,7 @@ function random_digits($digits) { function get_cachefile($file, $writemode = true) { $cache = get_config("system","itemcache"); - if ($cache == "") - return(""); - - if (!is_dir($cache)) + if ((! $cache) || (! is_dir($cache))) return(""); $subfolder = $cache."/".substr($file, 0, 2);