use redis connection pool for cache purge

This commit is contained in:
Kyle Drake 2014-08-15 12:55:10 -07:00
parent adaf581731
commit c0bea57468
2 changed files with 6 additions and 2 deletions

View file

@ -51,7 +51,9 @@ Sidekiq.configure_client do |config|
end
if $config['pubsub_url']
$pubsub = Redis.new url: $config['pubsub_url']
$pubsub_pool = ConnectionPool.new(size: 10, timeout: 5) {
Redis.new url: $config['pubsub_url']
}
end
if $config['pubsub_url'].nil? && ENV['RACK_ENV'] == 'production'