mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-29 03:40:27 +01:00
* feat: #8824, cache refactor ability to disable caches ability to download contents of cache refactor cache modules to remove duplicated code * fix: remove duplicate hit/miss tracking check cacheEnabled in getUncachedKeys
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',
|
|
});
|