Changeset 8990
- Timestamp:
- 03/08/08 01:05:53 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/caching/sweeping.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r8987 r8990 1 1 *SVN* 2 3 * Fixed that sweepers defined by cache_sweeper will be added regardless of the perform_caching setting. Instead, control whether the sweeper should be run with the perform_caching setting. This makes testing easier when you want to turn perform_caching on/off [DHH] 2 4 3 5 * Make MimeResponds::Responder#any work without explicit types. Closes #11140 [jaw6] trunk/actionpack/lib/action_controller/caching/sweeping.rb
r8819 r8990 37 37 module ClassMethods #:nodoc: 38 38 def cache_sweeper(*sweepers) 39 return unless perform_caching40 39 configuration = sweepers.extract_options! 41 40 … … 60 59 def before(controller) 61 60 self.controller = controller 62 callback(:before) 61 callback(:before) if controller.perform_caching 63 62 end 64 63 65 64 def after(controller) 66 callback(:after) 65 callback(:after) if controller.perform_caching 67 66 # Clean up, so that the controller can be collected after this request 68 67 self.controller = nil