This commit is contained in:
barisusakli
2015-02-10 23:34:06 -05:00
parent 104393f5f7
commit 1142f7700f

View File

@@ -343,16 +343,18 @@ var fs = require('fs'),
}).reduce(function(prev, cur) {
return prev.concat(cur);
});
next(null, paths);
}
], function(err, paths) {
for (var x=0,numPaths=paths.length;x<numPaths;x++) {
delete require.cache[paths[x]];
}
winston.verbose('[plugins] Plugin libraries removed from Node.js cache');
next();
});
Plugins.fireHook('filter:plugins.clearRequireCache', {paths: paths}, next);
},
function(data, next) {
for (var x=0,numPaths=data.paths.length;x<numPaths;x++) {
delete require.cache[data.paths[x]];
}
winston.verbose('[plugins] Plugin libraries removed from Node.js cache');
next();
},
], next);
};
function addLanguages(params, callback) {