Commit 918dd172 authored by Kerri Miller's avatar Kerri Miller

Feature flag use of new HighlightCache class

parent 21e4c379
......@@ -33,8 +33,11 @@ module Gitlab
private
def cache
# if Feature.enabled?(:redis_diff_caching)
@cache ||= Gitlab::Diff::DeprecatedHighlightCache.new(self)
@cache ||= if Feature.enabled?(:redis_diff_caching)
Gitlab::Diff::HighlightCache.new(self)
else
Gitlab::Diff::DeprecatedHighlightCache.new(self)
end
end
end
end
......
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