summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2014-09-02 17:55:44 +0200
committerUrban Müller2014-09-02 17:55:44 +0200
commit93ab9ba16c73c721f5a4bc2b97ea3dcc66345788 (patch)
tree1a6fae4bddb1375aed8c921f59e7a830823b168c /itjs.class
parentc2971eb952853be55a4d66b49d086e27970f2aea (diff)
downloaditools-93ab9ba16c73c721f5a4bc2b97ea3dcc66345788.tar.gz
itools-93ab9ba16c73c721f5a4bc2b97ea3dcc66345788.tar.bz2
itools-93ab9ba16c73c721f5a4bc2b97ea3dcc66345788.zip
keep checksums longer; we have a good cache key
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 4ce0616..3d144d2 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)));
- return it_cache::get($key) ?: it_cache::put($key, substr(md5(self::filecontents($filenames, false)), 0, 8));
+ return it_cache::get($key) ?: it_cache::put($key, substr(md5(self::filecontents($filenames, false)), 0, 8), array('ttl' => 60));
}
function crcurl($url)