mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 15:51:55 +02:00
use redis connection pool for cache purge
This commit is contained in:
parent
adaf581731
commit
c0bea57468
2 changed files with 6 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue