From 3cfea287baa596833bd5e8bda5e12fd03250008f Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 27 Feb 2006 21:37:30 +0000 Subject: Speed up class -> connection caching and stale connection verification. Closes #3979. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/dispatcher.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'railties/lib') diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 98ae774cea..2b4caff392 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -67,12 +67,13 @@ class Dispatcher ActionController::Routing::Routes.reload if Dependencies.load? prepare_breakpoint require_dependency('application.rb') unless Object.const_defined?(:ApplicationController) + ActiveRecord::Base.verify_connection_cache! end def reset_after_dispatch reset_application! if Dependencies.load? - ActiveRecord::Base.clear_connection_cache! Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT) + # ActiveRecord::Base.clear_connection_cache! end def prepare_breakpoint -- cgit v1.2.3