mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Clear stylesheet cache on base font change
Previously, we were not clearing the cache on themes using the default color scheme.
This commit is contained in:
@@ -27,7 +27,7 @@ DiscourseEvent.on(:site_setting_changed) do |name, old_value, new_value|
|
||||
end
|
||||
end
|
||||
|
||||
Stylesheet::Manager.clear_core_cache!(["desktop", "mobile", "admin"]) if name == :base_font
|
||||
Stylesheet::Manager.clear_core_cache!(["desktop", "mobile"]) if name == :base_font
|
||||
|
||||
Report.clear_cache(:storage_stats) if [:backup_location, :s3_backup_bucket].include?(name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user