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.
This commit is contained in:
Rosa Gutierrez
2026-01-07 14:13:15 +01:00
committed by Rosa Gutierrez
parent 006e61ea58
commit 025d70dd13
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
default_options: &default_options
store_options:
max_age: <%= 60.days.to_i %>
namespace: <%= Rails.env %>
namespace: <%= "#{Rails.env}#{"-#{ENV["CACHE_NAMESPACE"]}" if ENV["CACHE_NAMESPACE"]}" %>
default_connection: &default_connection
database: cache