mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Recalculate settings when dependent settings change
This commit is contained in:
@@ -41,4 +41,8 @@ DiscourseEvent.on(:site_setting_changed) do |name, old_value, new_value|
|
||||
if SiteIconManager::WATCHED_SETTINGS.include?(name)
|
||||
SiteIconManager.ensure_optimized!
|
||||
end
|
||||
|
||||
if SiteSetting::WATCHED_SETTINGS.include?(name)
|
||||
SiteSetting.reset_cached_settings!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user