|
|
@@ -21,7 +21,12 @@ Rails.application.configure do
|
|
|
config.action_controller.perform_caching = true
|
|
|
config.action_controller.enable_fragment_cache_logging = true
|
|
|
|
|
|
- config.cache_store = :memory_store
|
|
|
+ config.cache_store = if ENV['REDIS_URL']
|
|
|
+ [:redis_cache_store, {url: ENV['REDIS_URL']}]
|
|
|
+ else
|
|
|
+ :memory_store
|
|
|
+ end
|
|
|
+
|
|
|
config.public_file_server.headers = {
|
|
|
'Cache-Control' => "public, max-age=#{2.days.to_i}",
|
|
|
}
|