projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a3288b
)
optimise cachefile logic - still not sure why the cachefile profiling was getting...
author
friendica
<info@friendica.com>
Fri, 3 May 2013 04:59:20 +0000
(21:59 -0700)
committer
friendica
<info@friendica.com>
Fri, 3 May 2013 04:59:20 +0000
(21:59 -0700)
boot.php
patch
|
blob
|
history
diff --git
a/boot.php
b/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);