Method: ActiveRecord::ConnectionAdapters::StatementPool#reset
- Defined in:
- activerecord/lib/active_record/connection_adapters/statement_pool.rb
#reset ⇒ Object
Clear the pool without deallocating; this is only safe when we know the server has independently deallocated all statements (e.g. due to a reconnect, or a DISCARD ALL)
48 49 50 |
# File 'activerecord/lib/active_record/connection_adapters/statement_pool.rb', line 48 def reset cache.clear end |