Skip to content
Snippets Groups Projects
Commit 9711acc9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Prevent 500 on project home page if project has extremely huge number of commits

parent 7300440a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -105,7 +105,11 @@ class Repository
 
def commit_count
Rails.cache.fetch(cache_key(:commit_count)) do
raw_repository.raw.commit_count
begin
raw_repository.raw.commit_count
rescue
0
end
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment