mirror of
https://github.com/discourse/discourse.git
synced 2025-04-27 17:14:30 +08:00
Partially revert 4e89d3f778
.
* SiteSetting uses DistributedCache which depends on MessageBus. Therefore, we need to initialize MessageBus first.
This commit is contained in:
parent
23415caecd
commit
d2ac7a9476
@ -295,11 +295,11 @@ module SiteSettingExtension
|
|||||||
clean_name = name.to_s.sub("?", "").to_sym
|
clean_name = name.to_s.sub("?", "").to_sym
|
||||||
|
|
||||||
define_singleton_method clean_name do
|
define_singleton_method clean_name do
|
||||||
if (c = @containers[provider.current_site])
|
if (c = current[name]).nil?
|
||||||
c[name]
|
|
||||||
else
|
|
||||||
refresh!
|
refresh!
|
||||||
current[name]
|
current[name]
|
||||||
|
else
|
||||||
|
c
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user