Commit 9b108752 authored by Kerri Miller's avatar Kerri Miller

Memoize redis key generation

parent 0b6f5310
...@@ -80,7 +80,7 @@ module Gitlab ...@@ -80,7 +80,7 @@ module Gitlab
end end
def key def key
['highlighted-diff-files', diffable, VERSION, diff_options].join(":") @redis_key ||= ['highlighted-diff-files', diffable, VERSION, diff_options].join(":")
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment