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:
Penar Musaraj
2020-09-15 13:11:10 -04:00
parent 19b24e178c
commit 6610576deb
3 changed files with 12 additions and 4 deletions

View File

@@ -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)