Invalidate config cache when raw setting is deleted
This commit is contained in:
		
							parent
							
								
									ba8faacbd0
								
							
						
					
					
						commit
						cd9004b32b
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar