This project is archived and is in readonly mode.
caches_page :if is ignored (but caches_action :if works)
-
claytonlz
- Tag changed from bug, caching to bug, caches_page, caching
I am trying to implement a patch for this but I'm having a tough time getting the tests to pass correctly. I think the page caching test controller in caching_test.rb is poorly implemented.
I also tried looking at the way the action caching works, but it's implementation is different. I also followed the arguments from caches_page up the stack and from append_after_filter to update_filter_chain the "if" conditional never seemed to be evaluated.
-
Pratik
- State changed from new to incomplete
Could you please provide a failing test case in Action Pack test suite ?
Thanks
-
Ryan Bigg
- State changed from incomplete to invalid
This is covered in 14a40804. If this is broken, this test will fail.