clear cache before resetting the connection

This commit is contained in:
Aaron Patterson
2010-10-15 19:00:46 -07:00
parent 1b4e0b6542
commit 03e4ea5290

View File

@@ -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!