DEV: Disable Redis warnings.

This commit is contained in:
Guo Xiang Tan 2020-06-16 12:53:04 +08:00
parent c611f3703c
commit def4cd33ea
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -4,3 +4,7 @@ if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
puts "Flushing redis (development mode)"
Discourse.redis.flushdb
end
# Pending https://github.com/MiniProfiler/rack-mini-profiler/pull/450 and
# upgrade to Sidekiq 6.1
Redis.exists_returns_integer = true