实现缓存策略若干功能

This commit is contained in:
刘祥超
2020-10-04 16:09:50 +08:00
parent 937b07cbf6
commit ed731de9ec
17 changed files with 667 additions and 9 deletions

View File

@@ -49,9 +49,13 @@ Tea.context(function () {
this.globalChangedClusters = [];
})
.done(function () {
let delay = 3000
if (this.globalChangedClusters.length > 0) {
delay = 30000
}
this.$delay(function () {
this.checkClusterChanges()
}, 3000)
}, delay)
})
};