Небольшая доработка periodicCleanCache
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user