summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2014-09-26 17:04:56 +0200
committerUrban Müller2014-09-26 17:04:56 +0200
commit2c5b6fd862894d5fe6118942460fdcdb10605e49 (patch)
tree1658de762cd048fff184c1c4851420b8f926412a
parentc3e297e08ff1e1a60617e64bf3eace8db07c18f8 (diff)
downloaditools-2c5b6fd862894d5fe6118942460fdcdb10605e49.tar.gz
itools-2c5b6fd862894d5fe6118942460fdcdb10605e49.tar.bz2
itools-2c5b6fd862894d5fe6118942460fdcdb10605e49.zip
ignore unavailable files like elsewhere
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index f73698d..1a8f4a0 100644
--- a/itjs.class
+++ b/itjs.class
@@ -191,7 +191,7 @@ static function checksum($fnlist)
$filenames = array_merge(is_array($fnlist) ? $fnlist : itjs::filenames($fnlist), array("/www/lib.search.ch/var/jquery-ui/dist/minified/jquery.ui.core.min.js", "/www/lib.search.ch/var/jquery/dist/jquery.min.js")); # jquery files included by lib/jquery.js
$key = "itjs_" . md5(join("", it::map('"$v" . @filemtime("$v")', $filenames)));
- if (time() - max(array_map('filemtime', $filenames)) < 60)
+ if (time() - max(@array_map('filemtime', $filenames)) < 60)
return "-"; # trigger short expire, our file may not yet be up to date on other slaves
else
return it_cache::get($key) ?: it_cache::put($key, substr(md5(self::filecontents($filenames, false)), 0, 10), array('ttl' => 60));