method

caches_action

caches_action(*actions)
public

Declares that actions should be cached. See ActionController::Caching::Actions for details.