fix: use header/footer cache in prod

This commit is contained in:
Barış Soner Uşaklı
2020-11-08 19:46:36 -05:00
parent 05a92885f2
commit a0164b1c38

View File

@@ -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');