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

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

diff --git a/config/initializers/002-rails_failover.rb b/config/initializers/002-rails_failover.rb
index dadc068..c8f1cfb 100644
--- a/config/initializers/002-rails_failover.rb
+++ b/config/initializers/002-rails_failover.rb
@@ -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
 
diff --git a/lib/discourse.rb b/lib/discourse.rb
index 525bb79..11c10e9 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -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
 

GitHub sha: 78b5ab74