diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 22:00:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 22:00:14 +0300 |
commit | 05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 (patch) | |
tree | 11d0f2a6ec31c7793c184106cedc2ded3d9a2cc5 /app/models/pages_domain.rb | |
parent | ec73467c23693d0db63a797d10194da9e72a74af (diff) |
Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42
Diffstat (limited to 'app/models/pages_domain.rb')
-rw-r--r-- | app/models/pages_domain.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/pages_domain.rb b/app/models/pages_domain.rb index 4e3f4b0c328..909658214fd 100644 --- a/app/models/pages_domain.rb +++ b/app/models/pages_domain.rb @@ -78,6 +78,10 @@ class PagesDomain < ApplicationRecord find_by("LOWER(domain) = LOWER(?)", domain) end + def self.ids_for_project(project_id) + where(project_id: project_id).ids + end + def verified? !!verified_at end @@ -209,7 +213,7 @@ class PagesDomain < ApplicationRecord return unless pages_deployed? cache = if Feature.enabled?(:cache_pages_domain_api, project.root_namespace) - ::Gitlab::Pages::CacheControl.for_project(project.id) + ::Gitlab::Pages::CacheControl.for_domain(id) end Pages::VirtualDomain.new( |