Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge [5399] from trunk.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5400 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit a746e39584de98c15d2baedd21208af9dc629bbb 1 parent f4d8803
@jeremy jeremy authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 actionpack/lib/action_controller/caching.rb
View
7 actionpack/lib/action_controller/caching.rb
@@ -363,7 +363,12 @@ def read_fragment(name, options = nil)
# Name can take one of three forms:
# * String: This would normally take the form of a path like "pages/45/notes"
# * Hash: Is treated as an implicit call to url_for, like { :controller => "pages", :action => "notes", :id => 45 }
- # * 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
+ # * 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
+ # Regexp expiration is not supported on caches which can't iterate over
+ # all keys, such as memcached.
def expire_fragment(name, options = nil)
return unless perform_caching
Please sign in to comment.
Something went wrong with that request. Please try again.