diff options
author | Christian Schneider | 2014-09-26 11:29:50 +0200 |
---|---|---|
committer | Christian Schneider | 2014-09-26 11:29:50 +0200 |
commit | 2b0b108bbbd32f8e371db7577265074f5a9c7b3c (patch) | |
tree | 6e55d84a0d60dfb01411827daec5ec2b327b7988 | |
parent | edd327e75e93162124366d66e03fbbbf681ad7a7 (diff) | |
download | itools-2b0b108bbbd32f8e371db7577265074f5a9c7b3c.tar.gz itools-2b0b108bbbd32f8e371db7577265074f5a9c7b3c.tar.bz2 itools-2b0b108bbbd32f8e371db7577265074f5a9c7b3c.zip |
New checksums to make lower max-age in itjs.php being used
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |