mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
fix: #6979
This commit is contained in:
@@ -4,7 +4,7 @@ module.exports.create = function (name) {
|
||||
var LRU = require('lru-cache');
|
||||
var pubsub = require('../pubsub');
|
||||
|
||||
var cache = LRU({
|
||||
var cache = new LRU({
|
||||
max: 20000,
|
||||
length: function () { return 1; },
|
||||
maxAge: 0,
|
||||
|
||||
Reference in New Issue
Block a user