Flowdock
method

cache_page

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActionController::Caching::Pages

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

cache_page(content = nil, options = nil, gzip = Zlib::BEST_COMPRESSION) public

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"
Show source
Register or log in to add new notes.