Skip to content

Node.js based forum software built for the modern web

increase post cache size

Barış Soner Uşaklı7b93de2731c3
diff --git a/src/posts/cache.js b/src/posts/cache.js
index 9fce761490..28c58839e8 100644
--- a/src/posts/cache.js
+++ b/src/posts/cache.js
@@ -4,7 +4,7 @@ var LRU = require('lru-cache');
var meta = require('../meta');
var cache = LRU({
- max: parseInt(meta.config.postCacheSize, 10) || 1048576,
+ max: parseInt(meta.config.postCacheSize, 10) || 5242880,
length: function (n) { return n.length; },
maxAge: 0,
});