Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c8e820dc
Commit
c8e820dc
authored
Jan 21, 2021
by
Andrei Stoicescu
Committed by
James Lopez
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bust cache for GL.com billing page
- adds new cache key and feature flag
parent
05a199dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
ee/app/services/fetch_subscription_plans_service.rb
ee/app/services/fetch_subscription_plans_service.rb
+11
-3
ee/config/feature_flags/development/subscription_plan_cache_key.yml
...feature_flags/development/subscription_plan_cache_key.yml
+7
-0
No files found.
ee/app/services/fetch_subscription_plans_service.rb
View file @
c8e820dc
...
...
@@ -42,10 +42,18 @@ class FetchSubscriptionPlansService
end
def
cache_key
if
@namespace_id
.
present?
"subscription-plan-
#{
@plan
}
-
#{
@namespace_id
}
"
if
Feature
.
enabled?
(
:subscription_plan_cache_key
)
if
@namespace_id
.
present?
"subscription-plan-
#{
@plan
}
-
#{
@namespace_id
}
"
else
"subscription-plan-
#{
@plan
}
"
end
else
"subscription-plan-
#{
@plan
}
"
if
@namespace_id
.
present?
"subscription-plans-
#{
@plan
}
-
#{
@namespace_id
}
"
else
"subscription-plans-
#{
@plan
}
"
end
end
end
end
ee/config/feature_flags/development/subscription_plan_cache_key.yml
0 → 100644
View file @
c8e820dc
---
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment