forked from GitHub/dbot
Delete the pages module cache for a module if it exists
This commit is contained in:
parent
4c3887aa02
commit
eb526b18c5
8
run.js
8
run.js
@ -151,6 +151,14 @@ DBot.prototype.reloadModules = function() {
|
||||
var cacheKey = require.resolve(moduleDir + name);
|
||||
delete require.cache[cacheKey];
|
||||
|
||||
try {
|
||||
var webKey = require.resolve(moduleDir + 'web');
|
||||
} catch(err) {
|
||||
}
|
||||
if(webKey) {
|
||||
delete require.cache[webKey];
|
||||
}
|
||||
|
||||
try {
|
||||
// Load the module config data
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user