mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:12:45 +08:00
forgot to reconnect logster post fork
This commit is contained in:
parent
0334179c6e
commit
d648b04eef
|
@ -245,10 +245,12 @@ module Discourse
|
|||
SiteSetting.after_fork
|
||||
$redis.client.reconnect
|
||||
Rails.cache.reconnect
|
||||
Logster.store.redis.reconnect
|
||||
# shuts down all connections in the pool
|
||||
Sidekiq.redis_pool.shutdown{|c| nil}
|
||||
# re-establish
|
||||
Sidekiq.redis = sidekiq_redis_config
|
||||
nil
|
||||
end
|
||||
|
||||
def self.sidekiq_redis_config
|
||||
|
|
Loading…
Reference in New Issue
Block a user