]> git.mxchange.org Git - friendica.git/commitdiff
optimise cachefile logic - still not sure why the cachefile profiling was getting...
authorfriendica <info@friendica.com>
Fri, 3 May 2013 04:59:20 +0000 (21:59 -0700)
committerfriendica <info@friendica.com>
Fri, 3 May 2013 04:59:20 +0000 (21:59 -0700)
boot.php

index 5e50fa17a9182cc4bc9f0856e1154139b320681b..cf4a7abfb66b23c96aeebe84ac4fcba50bea275b 100644 (file)
--- 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);