Invalidate config cache when raw setting is deleted

This commit is contained in:
Lance Edgar 2022-08-04 08:14:04 -05:00
parent ba8faacbd0
commit cd9004b32b

View file

@ -91,6 +91,15 @@ class SettingView(MasterView):
return not bool(self.feedback.match(setting.name))
return True
def delete_instance(self, setting):
# nb. force cache invalidation
self.rattail_config.beaker_invalidate_setting(setting.name)
# otherwise delete like normal
super(SettingView, self).delete_instance(setting)
# TODO: deprecate / remove this
SettingsView = SettingView