mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
PERF: Only save site setting if values have been changed.
This commit is contained in:
@@ -37,7 +37,7 @@ class SiteSettings::DbProvider
|
||||
model.data_type = data_type
|
||||
|
||||
# save! used to ensure after_commit is called
|
||||
model.save!
|
||||
model.save! if model.changed?
|
||||
|
||||
true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user