mirror of https://github.com/mastodon/mastodon.git
format
parent
7d09701ef6
commit
eb2886c343
|
@ -26,7 +26,9 @@ Rails.application.configure do
|
||||||
config.action_controller.enable_fragment_cache_logging = true
|
config.action_controller.enable_fragment_cache_logging = true
|
||||||
|
|
||||||
config.cache_store = :redis_cache_store, REDIS_CACHE_PARAMS
|
config.cache_store = :redis_cache_store, REDIS_CACHE_PARAMS
|
||||||
config.public_file_server.headers = { 'Cache-Control' => "public, max-age=#{2.days.to_i}" }
|
config.public_file_server.headers = {
|
||||||
|
'Cache-Control' => "public, max-age=#{2.days.to_i}",
|
||||||
|
}
|
||||||
else
|
else
|
||||||
config.action_controller.perform_caching = false
|
config.action_controller.perform_caching = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue