实现open file cache

This commit is contained in:
GoEdgeLab
2022-01-12 21:09:11 +08:00
parent 2bfdf8b295
commit 85f4d74bd1
6 changed files with 46 additions and 5 deletions

View File

@@ -2,4 +2,9 @@ Tea.context(function () {
this.success = NotifyReloadSuccess("保存成功 ")
this.policyType = this.cachePolicy.type
this.fileOpenFileCacheMax = 0
if (this.cachePolicy.type == "file" && this.cachePolicy.options.openFileCache != null && this.cachePolicy.options.openFileCache.isOn && this.cachePolicy.options.openFileCache.max > 0) {
this.fileOpenFileCacheMax = this.cachePolicy.options.openFileCache.max
}
})