From 5cc30ca1a069fa674636d16f0d0aa5c0982b3731 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 1 Dec 2014 14:21:03 -0500 Subject: [PATCH] more cache hash fixes --- app.js | 2 ++ loader.js | 7 +++++-- src/meta/js.js | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 0f7fdc5faf..80e192746a 100644 --- a/app.js +++ b/app.js @@ -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; } diff --git a/loader.js b/loader.js index 0372f740a6..839aaecaa7 100644 --- a/loader.js +++ b/loader.js @@ -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; diff --git a/src/meta/js.js b/src/meta/js.js index deb2f661eb..6f5f3f1bce 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -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 }); }