mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:40:16 +00:00
optimise cachefile logic - still not sure why the cachefile profiling was getting triggered on a site with no cachefile configured
This commit is contained in:
parent
2a3288b01e
commit
ed5768c4a3
1 changed files with 1 additions and 4 deletions
5
boot.php
5
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);
|
||||
|
|
Loading…
Reference in a new issue