@barisusakli fixing minfile caching for multiple processes

v1.18.x
psychobunny 9 years ago
parent e8de1b268e
commit 329a7a1e08

@ -151,8 +151,8 @@ function start() {
meta.reload();
break;
case 'js-propagate':
meta.js.cache = message.cache;
meta.js.map = message.map;
meta.js.target[message.target].cache = message.cache;
meta.js.target[message.target].map = message.map;
emitter.emit('meta:js.compiled');
winston.verbose('[cluster] Client-side javascript and mapping propagated to worker %s', process.pid);
break;

@ -115,7 +115,8 @@ module.exports = function(Meta) {
process.send({
action: 'js-propagate',
cache: Meta.js.target[target].cache,
map: Meta.js.target[target].map
map: Meta.js.target[target].map,
target: target
});
}

Loading…
Cancel
Save