Files
fizzy/config/cache.yml
T
Rosa Gutierrez 025d70dd13 Use separate cache namespaces for each beta instance
Otherwise we end up with views including URLs from all the betas,
leading to some confusion and problems with the CSP.
2026-01-12 20:28:18 +01:00

18 lines
405 B
YAML

default_options: &default_options
store_options:
max_age: <%= 60.days.to_i %>
namespace: <%= "#{Rails.env}#{"-#{ENV["CACHE_NAMESPACE"]}" if ENV["CACHE_NAMESPACE"]}" %>
default_connection: &default_connection
database: cache
default: &default
<<: *default_connection
<<: *default_options
development: *default
test: *default_options
beta: *default
staging: *default
production: *default