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

This commit is contained in:
Book Pauk
2022-10-16 22:55:15 +07:00
parent 4e2760d39e
commit 65ea6d3d9a

View File

@@ -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;