0
0
Fork 0

Preheat status cache

This commit is contained in:
Eugen Rochko 2017-02-05 17:24:18 +01:00
parent 6fa4e01139
commit 19b9e1e2c3
4 changed files with 16 additions and 4 deletions

View file

@ -20,11 +20,12 @@ Rails.application.configure do
host: ENV['REDIS_HOST'] || 'localhost',
port: ENV['REDIS_PORT'] || 6379,
db: 0,
namespace: 'cache'
namespace: 'cache',
expires_in: 1.minute,
}
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=172800'
'Cache-Control' => 'public, max-age=172800',
}
else
config.action_controller.perform_caching = false