Skip to content

Commit

Permalink
clarify which url would be used to cache a page when options are not …
Browse files Browse the repository at this point in the history
…provided to #cache_page to determine that url
  • Loading branch information
mjankowski committed Jun 26, 2011
1 parent eccd5cb commit 2fd1f2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/caching/pages.rb
Expand Up @@ -133,8 +133,8 @@ def expire_page(options = {})
end
end

# Manually cache the +content+ in the key determined by +options+. If no content is provided, the contents of response.body is used
# If no options are provided, the requested url is used. Example:
# Manually cache the +content+ in the key determined by +options+. If no content is provided, the contents of response.body is used.
# If no options are provided, the url of the current request being handled is used. Example:
# cache_page "I'm the cached content", :controller => "lists", :action => "show"
def cache_page(content = nil, options = nil)
return unless self.class.perform_caching && caching_allowed?
Expand Down

0 comments on commit 2fd1f2e

Please sign in to comment.