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.

[PATCH] config.action_controller.perform_caching has no effect

#4383

The config option to control caching - config.action_controller.perform_caching - has no effect, as it seems that the option is never actually used. Patch forthcoming.

Reported by Chetan Sarva · April 13th, 2010 @ 04:01 AM

State: committed
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Chetan Sarva
  2. Chetan Sarva
    Chetan Sarva
    • Tag changed from patch to rails 3.0.0.beta2, edge, patch

    April 13th, 2010 @ 04:07 AM

  3. Chetan Sarva
    Chetan Sarva
    • Title changed from config.action_controller.perform_caching has no effect to [PATCH] config.action_controller.perform_caching has no effect

    April 13th, 2010 @ 04:13 AM

  4. Kristopher Murata
    Kristopher Murata
    • Tag changed from rails 3.0.0.beta2, edge, patch to rails 3.0.0.beta2, cache, edge, patch
    • Assigned user set to José Valim

    +1, the patch works for me.

    First I tested here the Rails HEAD with webrick and thin, both are always using cache, even when config.action_controller.perform_caching = false. (I only testes page caching, not fragment)

    But I see that your patch doesn't have any tests, could you add some?

    April 13th, 2010 @ 04:55 AM

  5. Chetan Sarva
    Chetan Sarva

    Added tests as requested. New patch contains fix + tests.

    April 13th, 2010 @ 04:33 PM

  6. Repository
    Repository
    • State changed from new to committed

    April 14th, 2010 @ 12:32 AM

  7. Santiago Pastorino
    Santiago Pastorino
    • Milestone cleared.

    I've kept Chetan Sarva as the committer of the tests

    April 14th, 2010 @ 01:13 AM

  8. MatthewRudy
    MatthewRudy

    I was looking earlier
    there are still a load of places which reference "perform_caching" directly on ActionController
    namely inside the ActionController::Caching module

    I noticed this when running the ActionDispatch tests on master.
    get a load of "use should be using config.perform_caching" messages.

    But there are so many,
    I'm not familiar enough with the structure to decide what to change.

    April 14th, 2010 @ 06:06 AM

  9. Chetan Sarva
    Chetan Sarva

    It looks like only the tests have been committed so far and not the fix itself -

    http://github.com/rails/rails/commit/90594721779e1d3ab103989fb7d0a7...

    April 14th, 2010 @ 03:14 PM

  10. Santiago Pastorino
  11. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM