From 2b0b108bbbd32f8e371db7577265074f5a9c7b3c Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Fri, 26 Sep 2014 11:29:50 +0200 Subject: New checksums to make lower max-age in itjs.php being used --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itjs.class b/itjs.class index b25141e..c8fe29b 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, 9), array('ttl' => 60)); + return it_cache::get($key) ?: it_cache::put($key, substr(md5(self::filecontents($filenames, false)), 0, 10), array('ttl' => 60)); } function crcurl($url) -- cgit v1.2.3