localStorage: fix cache_expire()
This commit is contained in:
parent
b39b57ac44
commit
23d064cc81
1 changed files with 6 additions and 3 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue