DEV: Refresh site settings on Redis fallback (#10700)

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

diff --git a/config/initializers/002-rails_failover.rb b/config/initializers/002-rails_failover.rb
index a8973bd..fcb1574 100644
--- a/config/initializers/002-rails_failover.rb
+++ b/config/initializers/002-rails_failover.rb
@@ -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

GitHub sha: ce686a00

1 Like

This commit appears in #10700 which was merged by davidtaylorhq.