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:
authorPatrick Bajao <ebajao@gitlab.com>2019-06-05 08:50:37 +0300
committerPatrick Bajao <ebajao@gitlab.com>2019-06-05 09:36:54 +0300
commit56d52340da0f8f15179b83f1206544a2590c22ff (patch)
treef4a25dbe5d0c165e1368cc7f20ab955560ee048e /lib/gitlab/markdown_cache
parent2eecfd8f9d111c6518930b818a16daea8263b37f (diff)
Use #cache_key of subject for generated redis key
This commit also includes some changes in specs to use `Class.new` approach.
Diffstat (limited to 'lib/gitlab/markdown_cache')
-rw-r--r--lib/gitlab/markdown_cache/redis/store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown_cache/redis/store.rb b/lib/gitlab/markdown_cache/redis/store.rb
index a35eebc6a1b..2d4a89d9f1c 100644
--- a/lib/gitlab/markdown_cache/redis/store.rb
+++ b/lib/gitlab/markdown_cache/redis/store.rb
@@ -48,7 +48,7 @@ module Gitlab
"This class has no id to use for caching"
end
- "markdown_cache:#{@subject.class}:#{@subject.id}"
+ "markdown_cache:#{@subject.cache_key}"
end
end
end