mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-12 23:50:47 +01:00
13 lines
274 B
JavaScript
13 lines
274 B
JavaScript
'use strict';
|
|
|
|
const cacheCreate = require('../cacheCreate');
|
|
const meta = require('../meta');
|
|
|
|
module.exports = cacheCreate({
|
|
name: 'post',
|
|
max: meta.config.postCacheSize,
|
|
length: function (n) { return n.length; },
|
|
maxAge: 0,
|
|
enabled: global.env === 'production',
|
|
});
|