mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue