mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
closes #3051
updated lru to latest created new files posts/cache.js posts/parse.js posts/edit.js
This commit is contained in:
11
src/posts/cache.js
Normal file
11
src/posts/cache.js
Normal file
@@ -0,0 +1,11 @@
|
||||
var LRU = require('lru-cache');
|
||||
|
||||
var cache = LRU({
|
||||
max: 1048576,
|
||||
length: function (n) { return n.length; },
|
||||
maxAge: 1000 * 60 * 60
|
||||
});
|
||||
|
||||
|
||||
|
||||
module.exports = cache;
|
||||
Reference in New Issue
Block a user