Invalidate config cache when raw setting is deleted
This commit is contained in:
parent
ba8faacbd0
commit
cd9004b32b
|
@ -91,6 +91,15 @@ class SettingView(MasterView):
|
||||||
return not bool(self.feedback.match(setting.name))
|
return not bool(self.feedback.match(setting.name))
|
||||||
return True
|
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
|
# TODO: deprecate / remove this
|
||||||
SettingsView = SettingView
|
SettingsView = SettingView
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue