Don't rebuild diverging commit count caches

When calling Repository#build_cache we _don't_ want to build the
diverging commit count cache as doing so can be _very_ slow for
repositories with lots of branches. Because these caches are built
whenever needed (= when actually viewing the list of branches in the web
UI) we can safely remove this code from
Repository#build_cache.
This commit is contained in:
Yorick Peterse 2016-03-17 17:52:19 +01:00
parent 81d191ede9
commit 3d7feeede3
1 changed files with 0 additions and 6 deletions

View File

@ -227,12 +227,6 @@ class Repository
send(key)
end
end
branches.each do |branch|
unless cache.exist?(:"diverging_commit_counts_#{branch.name}")
send(:diverging_commit_counts, branch)
end
end
end
def expire_tags_cache