FIX: Clear the cache after destroying theme_fields
This commit is contained in:
parent
91f0468f4e
commit
86fe423f5e
|
@ -372,10 +372,12 @@ class ThemeField < ActiveRecord::Base
|
|||
end
|
||||
end
|
||||
|
||||
after_commit on: [:create, :update] do
|
||||
after_commit do
|
||||
unless destroyed?
|
||||
ensure_baked!
|
||||
ensure_scss_compiles!
|
||||
theme.clear_cached_settings!
|
||||
end
|
||||
|
||||
Stylesheet::Manager.clear_theme_cache! if self.name.include?("scss")
|
||||
CSP::Extension.clear_theme_extensions_cache! if name == 'yaml'
|
||||
|
|
Loading…
Reference in New Issue