fix: add config reload flags to the state middleware
This commit is contained in:
parent
cfb360ab4e
commit
5945f9d31b
3 changed files with 20 additions and 14 deletions
|
|
@ -4,6 +4,7 @@ const SETTINGS_CACHE_REFRESH = 3600
|
|||
module.exports = (function () {
|
||||
return {
|
||||
oldVersionId: 'unset',
|
||||
needsSettingsReload: {},
|
||||
settingsCache: new NodeCache({
|
||||
stdTTL: SETTINGS_CACHE_REFRESH,
|
||||
checkperiod: SETTINGS_CACHE_REFRESH // Clear cache every hour
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue