Skip to content

A platform for community discussion. Free, open, simple.

FIX: Switch recently readonly mdoe cache to a `DistributedCache`.

Guo Xiang Tane75ad37aaf26
diff --git a/lib/discourse.rb b/lib/discourse.rb
index c78402b5638..9ea8ef90ee1 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -354,7 +354,7 @@ module Discourse
end
def self.last_read_only
- @last_read_only ||= {}
+ @last_read_only ||= DistributedCache.new('last_read_only', namespace: false)
end
def self.recently_readonly?