Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Disable Rack::Cache
Browse files Browse the repository at this point in the history
It's enabled by default in Rails, but in our case is unnecessary as
there are already several layers of caching in place.  It's also led to
confusion in places due to thing not being updated / 404's being cached
etc.
  • Loading branch information
KushalP committed Jul 5, 2012
1 parent 0515309 commit 2b9b2a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Expand Up @@ -56,5 +56,8 @@ class Application < Rails::Application

# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]

# Disable Rack::Cache.
config.action_dispatch.rack_cache = nil
end
end

0 comments on commit 2b9b2a5

Please sign in to comment.