Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ plugins.connectToAllDatabases().then(function() {
if (cluster.isMaster) {
plugins.installMissingPlugins(common.db);
common.runners = require('./parts/jobs/runner');
common.cache = new CacheMaster(common.db);
common.cache = new CacheMaster();
common.cache.start().then(() => {
setImmediate(() => {
plugins.dispatch('/cache/init', {});
Expand Down Expand Up @@ -333,7 +333,7 @@ plugins.connectToAllDatabases().then(function() {
console.log("Starting worker", process.pid, "parent:", process.ppid);
const taskManager = require('./utils/taskmanager.js');

common.cache = new CacheWorker(common.db);
common.cache = new CacheWorker();
common.cache.start();

//since process restarted mark running tasks as errored
Expand Down
Loading
Loading