mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: #6979
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
var LRU = require('lru-cache');
|
||||
var meta = require('../meta');
|
||||
|
||||
var cache = LRU({
|
||||
var cache = new LRU({
|
||||
max: meta.config.postCacheSize,
|
||||
length: function (n) { return n.length; },
|
||||
maxAge: 0,
|
||||
|
||||
Reference in New Issue
Block a user