浏览代码

Небольшая доработка periodicCleanCache

Book Pauk 2 年之前
父节点
当前提交
65ea6d3d9a
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      server/core/DbSearcher.js

+ 2 - 0
server/core/DbSearcher.js

@@ -317,6 +317,8 @@ class DbSearcher {
     async periodicCleanCache() {
         this.timer = null;
         const cleanInterval = this.config.cacheCleanInterval*60*1000;
+        if (!cleanInterval)
+            return;
 
         try {
             const db = this.db;