Snowcrash
Snowcrash

Reputation: 86057

Rails caching on Production

On Production I have caching switched off in config/environments/production.rb:

  config.action_controller.perform_caching = false

However content is being cached and I can't seem to clear it. The log just states:

Started GET "/1234" for 12.34.56.78 at 2013-06-21 23:36:41 +0100
Processing by MyController#index as HTML
Parameters: {"product_id"=>"1234"}
Rendered my_app/index.html.erb within layouts/application (0.0ms)
Completed 200 OK in 259ms (Views: 2.1ms | ActiveRecord: 254.7ms)

What gives and how do I clear the cache?

Upvotes: 0

Views: 717

Answers (1)

cpuguy83
cpuguy83

Reputation: 5993

This is not doing caching at all. And setting action_comtoller caching to false truly ensures that no caching is done.

If there was caching your response would literally say that it was loaded from cache.

Upvotes: 1

Related Questions