more timeout
This commit is contained in:
parent
fa4e3b18a7
commit
ff76e91ff8
1 changed files with 3 additions and 3 deletions
|
@ -30,6 +30,9 @@ async function checkCache(){
|
|||
}
|
||||
console.log(lastcache);
|
||||
fetch("/getupdates").then(async data=>{
|
||||
setTimeout((_: any)=>{
|
||||
checkedrecently = false;
|
||||
}, 1000 * 60 * 30);
|
||||
if(!data.ok) return;
|
||||
const text = await data.clone().text();
|
||||
console.log(text, lastcache);
|
||||
|
@ -38,9 +41,6 @@ async function checkCache(){
|
|||
putInCache("/getupdates", data);
|
||||
}
|
||||
checkedrecently = true;
|
||||
setTimeout((_: any)=>{
|
||||
checkedrecently = false;
|
||||
}, 1000 * 60 * 30);
|
||||
});
|
||||
}
|
||||
var checkedrecently = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue