Selaa lähdekoodia

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

Book Pauk 2 vuotta sitten
vanhempi
commit
65ea6d3d9a
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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;