mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +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:
parent
a48231041b
commit
4d3da70bc6
4 changed files with 10 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue