Skip to content

Commit 5eb6968

Browse files
author
Cihad Tekin
committed
[core] cache: updated deprecated api of lru-cache, cleaned up mongodb capped collection and change stream related code
1 parent 8a35fa9 commit 5eb6968

File tree

2 files changed

+28
-262
lines changed

2 files changed

+28
-262
lines changed

api/api.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ plugins.connectToAllDatabases().then(function() {
265265
if (cluster.isMaster) {
266266
plugins.installMissingPlugins(common.db);
267267
common.runners = require('./parts/jobs/runner');
268-
common.cache = new CacheMaster(common.db);
268+
common.cache = new CacheMaster();
269269
common.cache.start().then(() => {
270270
setImmediate(() => {
271271
plugins.dispatch('/cache/init', {});
@@ -333,7 +333,7 @@ plugins.connectToAllDatabases().then(function() {
333333
console.log("Starting worker", process.pid, "parent:", process.ppid);
334334
const taskManager = require('./utils/taskmanager.js');
335335

336-
common.cache = new CacheWorker(common.db);
336+
common.cache = new CacheWorker();
337337
common.cache.start();
338338

339339
//since process restarted mark running tasks as errored

0 commit comments

Comments
 (0)