Preheat status cache
This commit is contained in:
parent
6fa4e01139
commit
19b9e1e2c3
4 changed files with 16 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -64,7 +64,7 @@ Rails.application.configure do
|
|||
password: ENV.fetch('REDIS_PASSWORD') { false },
|
||||
db: 0,
|
||||
namespace: 'cache',
|
||||
expires_in: 20.minutes
|
||||
expires_in: 20.minutes,
|
||||
}
|
||||
|
||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue