Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5399

Show
Ignore:
Timestamp:
11/02/06 08:48:44 (2 years ago)
Author:
bitsweat
Message:

Document that expire_fragment with regexp arg fails on memcached and other caches which don't support iteration over all keys. Closes #6291.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/caching.rb

    r5289 r5399  
    364364      # * String: This would normally take the form of a path like "pages/45/notes" 
    365365      # * Hash: Is treated as an implicit call to url_for, like { :controller => "pages", :action => "notes", :id => 45 } 
    366       # * 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 
     366      # * Regexp: Will destroy all the matched fragments, example: 
     367      #     %r{pages/\d*/notes} 
     368      #   Ensure you do not specify start and finish in the regex (^$) because 
     369      #   the actual filename matched looks like ./cache/filename/path.cache 
     370      #   Regexp expiration is not supported on caches which can't iterate over 
     371      #   all keys, such as memcached. 
    367372      def expire_fragment(name, options = nil) 
    368373        return unless perform_caching