forgot to reconnect logster post fork

This commit is contained in:
Sam 2014-05-08 08:05:28 +10:00
parent 0334179c6e
commit d648b04eef

View File

@ -245,10 +245,12 @@ module Discourse
SiteSetting.after_fork SiteSetting.after_fork
$redis.client.reconnect $redis.client.reconnect
Rails.cache.reconnect Rails.cache.reconnect
Logster.store.redis.reconnect
# shuts down all connections in the pool # shuts down all connections in the pool
Sidekiq.redis_pool.shutdown{|c| nil} Sidekiq.redis_pool.shutdown{|c| nil}
# re-establish # re-establish
Sidekiq.redis = sidekiq_redis_config Sidekiq.redis = sidekiq_redis_config
nil
end end
def self.sidekiq_redis_config def self.sidekiq_redis_config