Changeset 3117
- Timestamp:
- 11/21/05 02:14:31 (3 years ago)
- Files:
-
- trunk/actionpack/lib/action_controller/caching.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/caching.rb
r3115 r3117 307 307 # * String: This would normally take the form of a path like "pages/45/notes" 308 308 # * Hash: Is treated as an implicit call to url_for, like { :controller => "pages", :action => "notes", :id => 45 } 309 # * Regexp: Will destroy all the matched fragments, example: %r{pages/\d*/notes} Ensure you don't use specify start and finish in your regex (^$) because the actual filename matched will look like ./cache/filename/path.cache 310 # 309 # * Regexp: Will destroy all the matched fragments, example: %r{pages/\d*/notes} Ensure you do not specify start and finish in the regex (^$) because the actual filename matched looks like ./cache/filename/path.cache 311 310 def expire_fragment(name, options = nil) 312 311 return unless perform_caching