mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
clear cache before resetting the connection
This commit is contained in:
@@ -250,8 +250,8 @@ module ActiveRecord
|
||||
# Close then reopen the connection.
|
||||
def reconnect!
|
||||
if @connection.respond_to?(:reset)
|
||||
@connection.reset
|
||||
clear_cache!
|
||||
@connection.reset
|
||||
configure_connection
|
||||
else
|
||||
disconnect!
|
||||
|
||||
Reference in New Issue
Block a user