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…
Reference in New Issue