From 65ea6d3d9a778f833f102f7a15160852cb994333 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 16 Oct 2022 22:55:15 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B0=D1=8F=20=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B0=20periodicCleanCache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/DbSearcher.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/core/DbSearcher.js b/server/core/DbSearcher.js index 09e2472..58f685e 100644 --- a/server/core/DbSearcher.js +++ b/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;