Rails is caching when I don't want it to. Why?

Posted by ryeguy on Stack Overflow See other posts from Stack Overflow or by ryeguy
Published on 2010-05-13T04:40:48Z Indexed on 2010/05/13 4:44 UTC
Read the original article Hit count: 231

Filed under:
|

Rails is caching the index method of one of my controllers. It's a very simple application and only has like 2 controllers and a handful of actions each. The weird thing is I don't have any caching in my application at all, at least not explicitly. The pages get uncached if I restart passenger. Does rails do some kind of automatic page caching?

  • There are no files in the public directory
  • The page is returning a 200 header
  • I have no caching blocks in my views (I use haml, if that matters)
  • I have no action, controller, or page caching defined
  • The request is hitting rails, verified by the production log

I have the following in my production.rb:

config.cache_classes = true
config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true config.action_view.cache_template_loading = true

© Stack Overflow or respective owner

Related posts about rails

Related posts about caching