This commit is contained in:
Barış Soner Uşaklı
2016-10-04 20:10:59 +03:00
parent f00c3abbc5
commit 9d0dc35703
13 changed files with 91 additions and 77 deletions

View File

@@ -1,11 +1,10 @@
var LRU = require('lru-cache');
var meta = require('../meta');
var cache = LRU({
max: 1048576,
max: parseInt(meta.config.postCacheSize, 10) || 1048576,
length: function (n) { return n.length; },
maxAge: 1000 * 60 * 60
});
module.exports = cache;