Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

config.action_controller.perform_caching = false ignored by Rails.cache.fetch

#6146

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.

Reported by Conrad Taylor · December 10th, 2010 @ 08:14 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. José Valim
    José Valim
    • 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.

    February 11th, 2011 @ 06:22 PM