Skip to content

A platform for community discussion. Free, open, simple.

DEV: Avoid reaching for `Redis#_client` which is considered deprecated.

Guo Xiang Tane4cd4f7e0be9
diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb
index 268edb66c99..71831433dd1 100644
--- a/config/unicorn.conf.rb
+++ b/config/unicorn.conf.rb
@@ -162,7 +162,7 @@ before_fork do |server, worker|
sleep 10
force_kill_rogue_sidekiq
end
- Discourse.redis._client.disconnect
+ Discourse.redis.close
end
end
@@ -177,7 +177,7 @@ before_fork do |server, worker|
end
- Discourse.redis._client.disconnect
+ Discourse.redis.close
# Throttle the master from forking too quickly by sleeping. Due
# to the implementation of standard Unix signal handlers, this