Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-10 18:11:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-10 18:11:12 +0300
commit6a6824a5ce46273248944d1859591d3a811aa18e (patch)
tree77cc4f04ff7d59fc518fba04e3a226dc0949ed37 /lib/gitlab
parent8fd149139d3d64b102f51455180f03adbc80f469 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/issuables_count_for_state.rb2
-rw-r--r--lib/gitlab/saas.rb4
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/issuables_count_for_state.rb b/lib/gitlab/issuables_count_for_state.rb
index 660877b964a..f11dd520d2d 100644
--- a/lib/gitlab/issuables_count_for_state.rb
+++ b/lib/gitlab/issuables_count_for_state.rb
@@ -6,7 +6,7 @@ module Gitlab
# The name of the Gitlab::SafeRequestStore cache key.
CACHE_KEY = :issuables_count_for_state
# The expiration time for the Rails cache.
- CACHE_EXPIRES_IN = 10.minutes
+ CACHE_EXPIRES_IN = 1.hour
THRESHOLD = 1000
# The state values that can be safely casted to a Symbol.
diff --git a/lib/gitlab/saas.rb b/lib/gitlab/saas.rb
index 8d9d8415cb1..4066c8a7906 100644
--- a/lib/gitlab/saas.rb
+++ b/lib/gitlab/saas.rb
@@ -20,6 +20,10 @@ module Gitlab
def self.dev_url
'https://dev.gitlab.org'
end
+
+ def self.registry_prefix
+ 'registry.gitlab.com'
+ end
end
end