protected Method

Caching.cache(key, options = nil) { || ... }

Convenience accessor

Source Code

# File action_controller/caching.rb, line 57
def cache(key, options = nil, &block)
  if cache_configured?
    cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
  else
    yield
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.