mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-17 04:52:51 +01:00
* cache mongodb objects remove user settings cache since it is cached at the object level * removed indexOf from isMemberOfSets * change has to get, change maxAge to 0
13 lines
240 B
JavaScript
13 lines
240 B
JavaScript
'use strict';
|
|
|
|
var LRU = require('lru-cache');
|
|
var meta = require('../meta');
|
|
|
|
var cache = LRU({
|
|
max: parseInt(meta.config.postCacheSize, 10) || 1048576,
|
|
length: function (n) { return n.length; },
|
|
maxAge: 0,
|
|
});
|
|
|
|
module.exports = cache;
|