diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/environments/development.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 3a2ab2a0e..829edcf04 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,7 +16,13 @@ Rails.application.configure do if Rails.root.join('tmp/caching-dev.txt').exist? config.action_controller.perform_caching = true - config.cache_store = :memory_store + config.cache_store = :redis_store, { + host: ENV['REDIS_HOST'] || 'localhost', + port: ENV['REDIS_PORT'] || 6379, + db: 0, + namespace: 'cache' + } + config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=172800' } |