init cache in various out of process workers

This commit is contained in:
Girish Ramakrishnan
2019-07-26 17:11:33 -07:00
parent 02f195b25c
commit c36cc86c5f
4 changed files with 21 additions and 8 deletions

View File

@@ -64,7 +64,10 @@ var NOOP_CALLBACK = function (error) { if (error) debug(error); };
function initialize(callback) {
assert.strictEqual(typeof callback, 'function');
database.initialize(callback);
async.series([
database.initialize,
settings.initCache
], callback);
}
function debugApp(app) {