From dda5070e70f6251b0ab61ee43f8561abe2f5b6b9 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 2 May 2005 07:04:59 +0000 Subject: [PATCH] Started work on a per-request query cache git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/dispatcher.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index 140d8e84a3..2a0765a932 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -51,6 +51,7 @@ def reset_application Dependencies.remove_subclasses_for(ActiveRecord::Base, ActiveRecord::Observer, ActionController::Base) end + ActiveRecord::Base.connection.clear_query_cache Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT) end end -- GitLab