Permalink
Browse files

Disable Rack::Cache

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...
1 parent 0515309 commit 2b9b2a59b01afffefe3f9ef975ae9ef8def93853 @KushalP KushalP committed Jul 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 config/application.rb
View
@@ -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.