localStorage: fix cache_expire()

This commit is contained in:
Andrew Dolgov 2010-11-10 16:33:15 +03:00
parent b39b57ac44
commit 23d064cc81
1 changed files with 6 additions and 3 deletions

View File

@ -1834,9 +1834,12 @@ function cache_expire() {
for (var id in cache_added) {
var tmp = [];
if (timestamp - cache_added[id] > 60) {
console.warn("CEXP:" + id);
cache_invalidate(id);
var key_id = id.replace("TS:", "");
//console.warn("CEXP:" + key_id);
if (timestamp - cache_added[id] > 180) {
cache_invalidate(key_id);
} else {
tmp[id] = cache_added[id];
}