FIX: Recalculate settings when dependent settings change

This commit is contained in:
Gerhard Schlager
2019-07-12 20:42:43 +02:00
parent fb2df0b43b
commit 8f89254554
3 changed files with 28 additions and 1 deletions

View File

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