Commit c8e820dc authored by Andrei Stoicescu's avatar Andrei Stoicescu Committed by James Lopez

Bust cache for GL.com billing page

 - adds new cache key and feature flag
parent 05a199dc
...@@ -42,10 +42,18 @@ class FetchSubscriptionPlansService ...@@ -42,10 +42,18 @@ class FetchSubscriptionPlansService
end end
def cache_key def cache_key
if Feature.enabled?(:subscription_plan_cache_key)
if @namespace_id.present? if @namespace_id.present?
"subscription-plan-#{@plan}-#{@namespace_id}" "subscription-plan-#{@plan}-#{@namespace_id}"
else else
"subscription-plan-#{@plan}" "subscription-plan-#{@plan}"
end end
else
if @namespace_id.present?
"subscription-plans-#{@plan}-#{@namespace_id}"
else
"subscription-plans-#{@plan}"
end
end
end end
end end
---
name: subscription_plan_cache_key
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52174
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/299068
type: development
group: group::fulfillment
default_enabled: false
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment