mirror of
https://github.com/discourse/discourse.git
synced 2025-09-09 12:21:04 +08:00
parent
98bc28cea2
commit
a3dfd553a1
6 changed files with 43 additions and 5 deletions
|
@ -489,7 +489,7 @@ module Discourse
|
|||
end
|
||||
|
||||
def self.readonly_mode?(keys = READONLY_KEYS)
|
||||
recently_readonly? || Discourse.redis.exists?(*keys)
|
||||
recently_readonly? || Discourse.redis.exists(*keys)
|
||||
end
|
||||
|
||||
def self.pg_readonly_mode?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue