mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
more cache hash fixes
This commit is contained in:
2
app.js
2
app.js
@@ -189,11 +189,13 @@ function start() {
|
|||||||
case 'js-propagate':
|
case 'js-propagate':
|
||||||
meta.js.cache = message.cache;
|
meta.js.cache = message.cache;
|
||||||
meta.js.map = message.map;
|
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);
|
winston.verbose('[cluster] Client-side javascript and mapping propagated to worker %s', cluster.worker.id);
|
||||||
break;
|
break;
|
||||||
case 'css-propagate':
|
case 'css-propagate':
|
||||||
meta.css.cache = message.cache;
|
meta.css.cache = message.cache;
|
||||||
meta.css.acpCache = message.acpCache;
|
meta.css.acpCache = message.acpCache;
|
||||||
|
meta.css.hash = message.hash;
|
||||||
winston.verbose('[cluster] Stylesheets propagated to worker %s', cluster.worker.id);
|
winston.verbose('[cluster] Stylesheets propagated to worker %s', cluster.worker.id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,8 @@ Loader.addClusterEvents = function(callback) {
|
|||||||
worker.send({
|
worker.send({
|
||||||
action: 'js-propagate',
|
action: 'js-propagate',
|
||||||
cache: Loader.js.cache,
|
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':
|
case 'js-propagate':
|
||||||
Loader.js.cache = message.cache;
|
Loader.js.cache = message.cache;
|
||||||
Loader.js.map = message.map;
|
Loader.js.map = message.map;
|
||||||
|
Loader.js.hash = message.hash;
|
||||||
|
|
||||||
otherWorkers = Object.keys(cluster.workers).filter(function(worker_id) {
|
otherWorkers = Object.keys(cluster.workers).filter(function(worker_id) {
|
||||||
return parseInt(worker_id, 10) !== parseInt(worker.id, 10);
|
return parseInt(worker_id, 10) !== parseInt(worker.id, 10);
|
||||||
@@ -114,7 +116,8 @@ Loader.addClusterEvents = function(callback) {
|
|||||||
cluster.workers[worker_id].send({
|
cluster.workers[worker_id].send({
|
||||||
action: 'js-propagate',
|
action: 'js-propagate',
|
||||||
cache: message.cache,
|
cache: message.cache,
|
||||||
map: message.map
|
map: message.map,
|
||||||
|
hash: message.hash
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ module.exports = function(Meta) {
|
|||||||
process.send({
|
process.send({
|
||||||
action: 'js-propagate',
|
action: 'js-propagate',
|
||||||
cache: Meta.js.cache,
|
cache: Meta.js.cache,
|
||||||
map: Meta.js.map
|
map: Meta.js.map,
|
||||||
|
hash: Meta.js.hash
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user