diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-21 01:08:30 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-21 01:08:30 +0000 |
commit | a0293c80f0ad06de4b80f50cd47868ff50aa7590 (patch) | |
tree | 9367f94ca526cc8d3a25efc5091b62b47bce9ff0 /actionpack/lib/action_controller/caching.rb | |
parent | 5d785dbc1142aab3b6bb1bc1d0e4d611c7fe45c5 (diff) | |
download | rails-a0293c80f0ad06de4b80f50cd47868ff50aa7590.tar.gz rails-a0293c80f0ad06de4b80f50cd47868ff50aa7590.tar.bz2 rails-a0293c80f0ad06de4b80f50cd47868ff50aa7590.zip |
Improve expire_fragment documentation. Closes #2966.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/caching.rb')
-rw-r--r-- | actionpack/lib/action_controller/caching.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/caching.rb b/actionpack/lib/action_controller/caching.rb index ef60d0a73e..56ab26f733 100644 --- a/actionpack/lib/action_controller/caching.rb +++ b/actionpack/lib/action_controller/caching.rb @@ -306,7 +306,8 @@ module ActionController #:nodoc: # 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} + # * 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 + # def expire_fragment(name, options = nil) return unless perform_caching |