instance method
clear_reloadable_connections!
Ruby on Rails 8.1.2
Since v2.2.3Signature
clear_reloadable_connections!()
Clears reloadable connections from the pool and re-connects connections that require reloading.
The pool first tries to gain ownership of all connections. If unable to do so within a timeout interval (default duration is spec.db_config.checkout_timeout * 2 seconds), then the pool forcefully clears the cache and reloads connections without any regard for other connection owning threads.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 612
def clear_reloadable_connections!
clear_reloadable_connections(false)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 612
· View on GitHub
· Improve this page
· Find usages on GitHub