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:
Diffstat (limited to 'lib/gitlab/pages/cache_control.rb')
-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..81da34f1219 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',
+ pages_keys: keys,
+ pages_type: @type,
+ pages_id: @id
+ )
Gitlab::Instrumentation::RedisClusterValidator.allow_cross_slot_commands do
Rails.cache.delete_multi(keys)