mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 06:48:18 +08:00
BUGFIX: Correct after_fork semantics
After fork SiteSettings was not getting a new process id, causing site settings not to refresh properly in unicorn This code also centralizes the logic
This commit is contained in:
@ -179,6 +179,10 @@ module SiteSettingExtension
|
||||
@@process_id ||= SecureRandom.uuid
|
||||
end
|
||||
|
||||
def after_fork
|
||||
@@process_id = nil
|
||||
end
|
||||
|
||||
def remove_override!(name)
|
||||
provider.destroy(name)
|
||||
current[name] = defaults[name]
|
||||
|
Reference in New Issue
Block a user