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>2023-02-14 21:12:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-14 21:12:38 +0300
commit283c7bb302510ed1fc55f0d333c484ce7fa781fd (patch)
treeadbb03e34cc91f339395f6417502c075ee84b8bb /lib/gitlab/pages
parenta2b7b398c7855bccee5d2f0f9a021b2efea0838e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/pages')
-rw-r--r--lib/gitlab/pages/cache_control.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/gitlab/pages/cache_control.rb b/lib/gitlab/pages/cache_control.rb
index a24d958b7e5..a0b3ab87f38 100644
--- a/lib/gitlab/pages/cache_control.rb
+++ b/lib/gitlab/pages/cache_control.rb
@@ -47,8 +47,15 @@ module Gitlab
# cached settings hash to build the payload cache key to be invalidated.
def clear_cache
keys = cached_settings_hashes
- .map { |hash| payload_cache_key_for(hash) }
- .push(settings_cache_key)
+ .map { |hash| payload_cache_key_for(hash) }
+ .push(settings_cache_key)
+
+ ::Gitlab::AppLogger.info(
+ message: 'clear pages cache',
+ keys: keys,
+ type: @type,
+ id: @id
+ )
Gitlab::Instrumentation::RedisClusterValidator.allow_cross_slot_commands do
Rails.cache.delete_multi(keys)