DEV: No longer need to clear anon cache when toggling readonly mode.
This commit is contained in:
parent
62ad473716
commit
78b5ab746c
|
@ -58,7 +58,6 @@ if ENV["ACTIVE_RECORD_RAILS_FAILOVER"]
|
|||
Discourse.redis.set(PG_FORCE_READONLY_MODE_KEY, 1)
|
||||
Sidekiq.pause!("pg_failover") if !Sidekiq.paused?
|
||||
MessageBus.publish(readonly_channel, true)
|
||||
Site.clear_anon_cache!
|
||||
true
|
||||
end
|
||||
|
||||
|
|
|
@ -448,7 +448,6 @@ module Discourse
|
|||
end
|
||||
|
||||
MessageBus.publish(readonly_channel, true)
|
||||
Site.clear_anon_cache!
|
||||
true
|
||||
end
|
||||
|
||||
|
@ -484,7 +483,6 @@ module Discourse
|
|||
def self.disable_readonly_mode(key = READONLY_MODE_KEY)
|
||||
Discourse.redis.del(key)
|
||||
MessageBus.publish(readonly_channel, false)
|
||||
Site.clear_anon_cache!
|
||||
true
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue