method

load_rack_cache

rails latest stable - Class: Rails::Application

Method deprecated or moved

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

load_rack_cache()
protected

No documentation available.

# File railties/lib/rails/application.rb, line 368
    def load_rack_cache
      rack_cache = config.action_dispatch.rack_cache
      return unless rack_cache

      begin
        require 'rack/cache'
      rescue LoadError => error
        error.message << ' Be sure to add rack-cache to your Gemfile'
        raise
      end

      if rack_cache == true
        {
          metastore: "rails:/",
          entitystore: "rails:/",
          verbose: false
        }
      else
        rack_cache
      end
    end