0

Switch to autoupdated cacheTag from constant cacheMinutes

This commit is contained in:
Johan Kiviniemi
2011-12-13 10:14:34 +02:00
parent 0aeee084d7
commit abf643e3ae
3 changed files with 12 additions and 12 deletions

View File

@@ -1141,10 +1141,8 @@ var overviewer = {
}
}
url = url + '.' + pathExt;
if(overviewerConfig.map.cacheMinutes > 0) {
var d = new Date();
url += '?c=' + Math.floor(d.getTime() /
(1000 * 60 * overviewerConfig.map.cacheMinutes));
if(typeof overviewerConfig.map.cacheTag !== 'undefined') {
url += '?c=' + overviewerConfig.map.cacheTag;
}
return(urlBase + url);
}