summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2014-09-25 19:49:34 +0200
committerUrban Müller2014-09-25 19:49:34 +0200
commit42de49cfb16df32142f312f3396d0a8737431901 (patch)
tree85b7d438979f982aef5b5d9b02ec3f1c42942cd5 /itjs.class
parent1b226b0b61b0ee8ecefc743d36a24c125023ef0f (diff)
downloaditools-42de49cfb16df32142f312f3396d0a8737431901.tar.gz
itools-42de49cfb16df32142f312f3396d0a8737431901.tar.bz2
itools-42de49cfb16df32142f312f3396d0a8737431901.zip
expire all scripts, short max-age for testing
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 fb3ac13..b25141e 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), array('ttl' => 60));
+ return it_cache::get($key) ?: it_cache::put($key, substr(md5(self::filecontents($filenames, false)), 0, 9), array('ttl' => 60));
}
function crcurl($url)