mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 20:18:40 +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.