mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
PERF: Use Redis SET EX GET
instead of LUA script for counting (#15939)
This will prevent Discourse from booting on Redis < 6.2.0
This commit is contained in:

committed by
GitHub

parent
a48231041b
commit
4d3da70bc6
@ -8,3 +8,8 @@ end
|
||||
# Pending https://github.com/MiniProfiler/rack-mini-profiler/pull/450 and
|
||||
# upgrade to Sidekiq 6.1
|
||||
Redis.exists_returns_integer = true
|
||||
|
||||
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"
|
||||
exit 1
|
||||
end
|
||||
|
Reference in New Issue
Block a user