diff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rb index 268edb66c9..71831433dd 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