Fixed the settings cache

This commit is contained in:
Wyatt Johnson
2016-12-13 16:16:39 -07:00
parent 55bd600d96
commit 3710d23991
+3 -5
View File
@@ -142,11 +142,9 @@ SettingService.update = (settings) => Setting.findOneAndUpdate(selector, {
}).then((settings) => {
// Invalidate the settings cache.
return Promise.all([
cache.set('settings', settings, EXPIRY_TIME),
cache.invalidate('publicSettings')
])
.then(() => settings);
return cache
.set('settings', settings, EXPIRY_TIME)
.then(() => settings);
});
/**