module AbstractController::Caching

def cache(key, options = {}, &block) # :doc:

:doc:
Convenience accessor.
def cache(key, options = {}, &block) # :doc:
  if cache_configured?
    cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &block)
  else
    yield
  end
end