DEV: No longer need to clear anon cache when toggling readonly mode.

This commit is contained in:
Guo Xiang Tan 2020-06-12 09:58:02 +08:00
parent 62ad473716
commit 78b5ab746c
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 0 additions and 3 deletions

View File

@ -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

View File

@ -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