Caching configured using file_store

This commit is contained in:
Christoph Haas 2016-06-28 17:12:32 +02:00
parent c0109eb6e7
commit 1928f8d2a8
2 changed files with 9 additions and 2 deletions

View file

@ -13,9 +13,12 @@ Debshots::Application.configure do
# ActiveRecord errors propagate normally (forward deprecation to Rails 5)
config.active_record.raise_in_transactional_callbacks = true
# Full error reports are disabled and caching is turned on.
# Full error reports are disabled
config.consider_all_requests_local = false
# Caching turned on
config.action_controller.perform_caching = true
config.cache_store = :file_store, "#{Rails.root.to_s}/tmp/cache/filestore"
# Enable Rack::Cache to put a simple HTTP cache in front of your application
# Add `rack-cache` to your Gemfile before enabling this.