Delete settings cache after create/update.
This commit is contained in:
parent
7e9125aa2c
commit
407864066b
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ class Setting < ApplicationModel
|
|||
store :state
|
||||
store :state_initial
|
||||
before_create :set_initial
|
||||
after_create :delete_cache
|
||||
after_update :delete_cache
|
||||
|
||||
def self.load
|
||||
|
||||
|
|
Loading…
Reference in a new issue