more cache hash fixes

v1.18.x
Julian Lam 10 years ago
parent 2e24224449
commit 5cc30ca1a0

@ -189,11 +189,13 @@ function start() {
case 'js-propagate':
meta.js.cache = message.cache;
meta.js.map = message.map;
meta.js.hash = message.hash;
winston.verbose('[cluster] Client-side javascript and mapping propagated to worker %s', cluster.worker.id);
break;
case 'css-propagate':
meta.css.cache = message.cache;
meta.css.acpCache = message.acpCache;
meta.css.hash = message.hash;
winston.verbose('[cluster] Stylesheets propagated to worker %s', cluster.worker.id);
break;
}

@ -73,7 +73,8 @@ Loader.addClusterEvents = function(callback) {
worker.send({
action: 'js-propagate',
cache: Loader.js.cache,
map: Loader.js.map
map: Loader.js.map,
hash: Loader.js.hash
});
}
@ -105,6 +106,7 @@ Loader.addClusterEvents = function(callback) {
case 'js-propagate':
Loader.js.cache = message.cache;
Loader.js.map = message.map;
Loader.js.hash = message.hash;
otherWorkers = Object.keys(cluster.workers).filter(function(worker_id) {
return parseInt(worker_id, 10) !== parseInt(worker.id, 10);
@ -114,7 +116,8 @@ Loader.addClusterEvents = function(callback) {
cluster.workers[worker_id].send({
action: 'js-propagate',
cache: message.cache,
map: message.map
map: message.map,
hash: message.hash
});
});
break;

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

Loading…
Cancel
Save