docs: function purgeCache(moduleName) {
      // Traverse the cache looking for the files
      // loaded by the specified module name
      searchCache(moduleName, function (mod) {
          delete require.cache[mod.id];
      });
  
      // Remove cached paths to the module.
      // Thanks to @bentael for pointing this out.
      Object.keys(module.constructor._pathCache).forEach(function(cacheKey) {
          if (cacheKey.indexOf(moduleName)>0) {
              delete module.constructor._pathCache[cacheKey];
          }
      });
    }