mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
implement the cache purger
This commit is contained in:
parent
4bfaa32431
commit
3a6ca6c12b
5 changed files with 67 additions and 28 deletions
|
@ -75,18 +75,6 @@ if ENV['RACK_ENV'] == 'development'
|
|||
end
|
||||
# :nocov:
|
||||
|
||||
# :nocov:
|
||||
if $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'
|
||||
raise 'pubsub_url is missing from config'
|
||||
end
|
||||
# :nocov:
|
||||
|
||||
Sequel.datetime_class = Time
|
||||
Sequel.extension :core_extensions
|
||||
Sequel.extension :migration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue