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:
committed by
Rosa Gutierrez
parent
006e61ea58
commit
025d70dd13
+1
-1
@@ -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
|
||||
|
||||
@@ -75,6 +75,7 @@ ssh:
|
||||
env:
|
||||
clear:
|
||||
APP_FQDN: beta<%= @beta_number %>.fizzy-beta.com
|
||||
CACHE_NAMESPACE: <%= @beta_number %>
|
||||
RAILS_ENV: beta
|
||||
RAILS_LOG_LEVEL: fatal # suppress unstructured log lines
|
||||
MYSQL_DATABASE_HOST: fizzy-mysql-primary
|
||||
|
||||
Reference in New Issue
Block a user