From 329a7a1e08b5e9d84ac41244cf7c42d9f8629940 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 2 Mar 2016 23:56:47 -0500 Subject: [PATCH] @barisusakli fixing minfile caching for multiple processes --- app.js | 4 ++-- src/meta/js.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 445b21c845..da819da310 100644 --- a/app.js +++ b/app.js @@ -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; diff --git a/src/meta/js.js b/src/meta/js.js index 314e10a400..3d791d9d3d 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -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 }); }