From 3894555b2ed9cbc40fd1c9ee028933adf74b495b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 1 Jun 2020 10:55:53 +0800 Subject: [PATCH] DEV: Prefer `Discourse.redis.reconnct`. --- lib/discourse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 66c459da67b..aa417260daf 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -652,7 +652,7 @@ module Discourse # note: some of this reconnecting may no longer be needed per https://github.com/redis/redis-rb/pull/414 MessageBus.after_fork SiteSetting.after_fork - Discourse.redis._client.reconnect + Discourse.redis.reconnect Rails.cache.reconnect Discourse.cache.reconnect Logster.store.redis.reconnect