mirror of
https://github.com/discourse/discourse.git
synced 2025-03-05 10:30:55 +08:00

Since this is rare, we don't want to check for `Discourse.pg_readonly_mode?` on every request since we have to reach for Redis. Instead, just rescue the error here.