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/process_memory_cache/helper.rb')
-rw-r--r--lib/gitlab/process_memory_cache/helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/process_memory_cache/helper.rb b/lib/gitlab/process_memory_cache/helper.rb
index ee4b81a9a19..8d436c14b48 100644
--- a/lib/gitlab/process_memory_cache/helper.rb
+++ b/lib/gitlab/process_memory_cache/helper.rb
@@ -35,7 +35,7 @@ module Gitlab
time = Time.current.to_f
cache_backend.write(key, data: data, cached_at: time)
- touch_cache_timestamp(key, time)
+ touch_cache_timestamp(key, time) unless shared_backend.read(key)
data
end