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 default_options: &default_options
store_options: store_options:
max_age: <%= 60.days.to_i %> max_age: <%= 60.days.to_i %>
namespace: <%= Rails.env %> namespace: <%= "#{Rails.env}#{"-#{ENV["CACHE_NAMESPACE"]}" if ENV["CACHE_NAMESPACE"]}" %>
default_connection: &default_connection default_connection: &default_connection
database: cache database: cache
+1
View File
@@ -75,6 +75,7 @@ ssh:
env: env:
clear: clear:
APP_FQDN: beta<%= @beta_number %>.fizzy-beta.com APP_FQDN: beta<%= @beta_number %>.fizzy-beta.com
CACHE_NAMESPACE: <%= @beta_number %>
RAILS_ENV: beta RAILS_ENV: beta
RAILS_LOG_LEVEL: fatal # suppress unstructured log lines RAILS_LOG_LEVEL: fatal # suppress unstructured log lines
MYSQL_DATABASE_HOST: fizzy-mysql-primary MYSQL_DATABASE_HOST: fizzy-mysql-primary