Allow disable of the series cache.

This commit is contained in:
Roel van Uden
2015-01-24 11:57:18 +01:00
parent 8de1090a95
commit 453ab26d49

View File

@@ -16,7 +16,7 @@ var url = require('url');
module.exports = function (config, address, done) {
var persistentPath = path.join(config.path || process.cwd(), persistent);
fs.readFile(persistentPath, 'utf8', function(err, data) {
var cache = JSON.parse(data || '{}');
var cache = config.cache ? {} : JSON.parse(data || '{}');
_page(address, function(err, page) {
if (err) return done(err);
var i = 0;