Browse Source

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

Book Pauk 2 years ago
parent
commit
65ea6d3d9a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      server/core/DbSearcher.js

+ 2 - 0
server/core/DbSearcher.js

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