This project is archived and is in readonly mode.
config.action_controller.perform_caching = false ignored by Rails.cache.fetch
Reported by Conrad Taylor | December 10th, 2010 @ 08:14 PM
It appears that Rails doesn't respect "config.action_controller.perform_caching = false" for Rails.cache.fetch. However, it appears to respect it only for action, fragment, and page caching. At this time, I'm getting the occasional nil error messages when in the development mode.
Comments and changes to this ticket
-
José Valim February 11th, 2011 @ 06:22 PM
- State changed from new to invalid
- Importance changed from to Low
Hey, thanks for creating a ticket. However, it makes sense that config.action_controller.perform_caching affects caching just on action_controller, as the name says.
Besides, Rails.cache is a basic structure and should not be affected by any directive, the fact of caching or not caching should be an abstract on top of Rails.cache. If you really need to avoid caching, I believe you may create or use a dummy store as Rails.cache.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>