mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #5081
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user