DEV: Refresh site settings on Redis fallback (#10700)
This ensures that all app instances have up-to-date data, even if they missed a message-bus update during the failover
This commit is contained in:
parent
d83d9ec408
commit
ce686a008f
|
@ -17,6 +17,8 @@ if defined?(RailsFailover::Redis)
|
|||
ObjectSpace.each_object(DistributedCache) do |cache|
|
||||
cache.clear
|
||||
end
|
||||
|
||||
SiteSetting.refresh!
|
||||
end
|
||||
|
||||
if Rails.logger.respond_to? :chained
|
||||
|
|
Loading…
Reference in New Issue