From aa002c0e86afdc83693f14667a710107843f0fbd Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 22 Dec 2008 11:31:18 -0600 Subject: ActiveRecord::QueryCache middleware --- actionpack/lib/action_controller/dispatcher.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_controller/dispatcher.rb') diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb index e1eaaf7cbb..0cfd451c04 100644 --- a/actionpack/lib/action_controller/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatcher.rb @@ -48,6 +48,7 @@ module ActionController !ActionController::Base.allow_concurrency } middleware.use "ActionController::Failsafe" + middleware.use "ActiveRecord::QueryCache" if defined?(ActiveRecord) ["ActionController::Session::CookieStore", "ActionController::Session::MemCacheStore", -- cgit v1.2.3