DEV: Remove old redis option (#17427)

`Redis.exists_returns_integer` is now true by default
This commit is contained in:
Jarek Radosz 2022-07-11 22:15:30 +02:00 committed by GitHub
parent d90cdba70f
commit 040e1650f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -5,10 +5,6 @@ if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
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
begin
if Gem::Version.new(Discourse.redis.info['redis_version']) < Gem::Version.new("6.2.0")
STDERR.puts "Discourse requires Redis 6.2.0 or up"