1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-12-27 17:16:01 -03:00
parent 360d70e29e
commit d89471174f
9 changed files with 68 additions and 47 deletions

View file

@ -1946,7 +1946,14 @@ async function checkDescriptionArea() {
}
});
}
var clearCacheExecuted = false;
function clearCache(showPleaseWait, FirstPage, sessionOnly) {
if(clearCacheExecuted){
return false;
}
clearCacheExecuted = true;
console.trace();
if (showPleaseWait) {
modal.showPleaseWait();
}
@ -1956,6 +1963,9 @@ function clearCache(showPleaseWait, FirstPage, sessionOnly) {
if (showPleaseWait) {
avideoResponse(response);
modal.hidePleaseWait();
setTimeout(() => {
clearCacheExecuted = false;
}, 1000);
}
}
});