decrease standard refresh time to 30 seconds, so chat is more up to date

increase map tile cache to 2 minutes, so the increased refresh for chat does not impact map data tile requests
This commit is contained in:
Jon Atkins
2013-06-15 17:08:59 +01:00
parent 993c830bf0
commit c776a07fd6
2 changed files with 3 additions and 3 deletions

View File

@ -9,8 +9,8 @@
window._requestCache = {}
// cache entries older than the fresh age, and younger than the max age, are stale. they're used in the case of an error from the server
window.REQUEST_CACHE_FRESH_AGE = window.REFRESH; // if younger than this, use data in the cache rather than fetching from the server
window.REQUEST_CACHE_MAX_AGE = 5*window.REFRESH; // maximum cache age. entries are deleted from the cache after this time
window.REQUEST_CACHE_FRESH_AGE = 2*60; // if younger than this, use data in the cache rather than fetching from the server
window.REQUEST_CACHE_MAX_AGE = 15*60; // maximum cache age. entries are deleted from the cache after this time
window.storeDataCache = function(qk,data) {
var d = new Date();