mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: use header/footer cache in prod
This commit is contained in:
@@ -15,6 +15,7 @@ const cache = cacheCreate({
|
|||||||
name: 'header-footer',
|
name: 'header-footer',
|
||||||
max: 1000,
|
max: 1000,
|
||||||
maxAge: 0,
|
maxAge: 0,
|
||||||
|
enabled: global.env === 'production',
|
||||||
});
|
});
|
||||||
|
|
||||||
const relative_path = nconf.get('relative_path');
|
const relative_path = nconf.get('relative_path');
|
||||||
|
|||||||
Reference in New Issue
Block a user