mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 00:56:01 +08: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