mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
@barisusakli fixing minfile caching for multiple processes
This commit is contained in:
4
app.js
4
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;
|
||||
|
||||
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user