From 829d189f44f1c8bdfc3aa60aa4ae2f477c72edad Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 3 Nov 2016 18:53:37 +0100 Subject: Add tests for recently added API end points --- config/environments/development.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'config/environments') 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' } -- cgit