Method: ActiveRecord::ConnectionAdapters::ConnectionPool#clear_reloadable_connections!

Defined in:
activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb

#clear_reloadable_connections!Object

Clears the cache which maps classes 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.



529
530
531
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 529

def clear_reloadable_connections!
  clear_reloadable_connections(false)
end