Ver código fonte

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

Book Pauk 2 anos atrás
pai
commit
65ea6d3d9a
1 arquivos alterados com 2 adições e 0 exclusões
  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;