Commit 87aba17e authored by Sean McGivern's avatar Sean McGivern

Memoize diffs with path options set separately

parent 32e593c6
......@@ -46,7 +46,8 @@ class MergeRequestDiff < ActiveRecord::Base
compare.diffs(options)
end
else
@diffs ||= load_diffs(st_diffs, options)
@diffs ||= {}
@diffs[options[:paths]] ||= load_diffs(st_diffs, options)
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