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

def view_cache_dependencies

def view_cache_dependencies
  self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&dep) }
end