diff options
author | wycats <wycats@gmail.com> | 2010-09-13 14:03:06 -0700 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-09-13 16:06:03 -0700 |
commit | 254ab7d916e579b9300951f5f33d3c5d3ee755a2 (patch) | |
tree | 722bb7e82ecdcef9bac2383e766c0a7fb398c6d1 /railties/lib/rails | |
parent | 9cd094b8da492b711002dd4b1f2792f315e9bde0 (diff) | |
download | rails-254ab7d916e579b9300951f5f33d3c5d3ee755a2.tar.gz rails-254ab7d916e579b9300951f5f33d3c5d3ee755a2.tar.bz2 rails-254ab7d916e579b9300951f5f33d3c5d3ee755a2.zip |
First pass at Rack::Cache
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 8631a5df3e..b923fedab7 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -147,6 +147,9 @@ module Rails def default_middleware_stack ActionDispatch::MiddlewareStack.new.tap do |middleware| + require "action_dispatch/http/rack_cache" if config.action_dispatch.rack_cache + + middleware.use ::Rack::Cache, config.action_dispatch.rack_cache if config.action_dispatch.rack_cache middleware.use ::ActionDispatch::Static, config.static_asset_paths if config.serve_static_assets middleware.use ::Rack::Lock if !config.allow_concurrency middleware.use ::Rack::Runtime |