Caching configured using file_store
This commit is contained in:
parent
c0109eb6e7
commit
1928f8d2a8
2 changed files with 9 additions and 2 deletions
|
|
@ -9,9 +9,13 @@ Debshots::Application.configure do
|
|||
# Do not eager load code on boot.
|
||||
config.eager_load = false
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
# Show full error reports
|
||||
config.consider_all_requests_local = true
|
||||
|
||||
# Disable caching (except for working on caching)
|
||||
config.action_controller.perform_caching = false
|
||||
# config.action_controller.perform_caching = true
|
||||
# config.cache_store = :file_store, "#{Rails.root.to_s}/tmp/cache/filestore"
|
||||
|
||||
# Don't care if the mailer can't send.
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue