File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,15 @@ def show
22
22
end
23
23
24
24
cached_charts_columns = $redis. get ( "#{ @form_result_type } _#{ @benchmark_run_display_count } " )
25
+ repo_commits_count = @repo . commits . count
25
26
26
27
@charts =
27
- if $redis. get ( 'commits_count' ) . to_i == Commit . count && cached_charts_columns
28
+ if $redis. get ( 'commits_count' ) . to_i == repo_commits_count && cached_charts_columns
28
29
cached_charts_columns = JSON . parse ( cached_charts_columns )
29
30
cached_charts_columns . each { |h | h . symbolize_keys! }
30
31
cached_charts_columns
31
32
else
32
- $redis. set ( 'commits_count' , Commit . count )
33
+ $redis. set ( 'commits_count' , repo_commits_count )
33
34
commits_ids = @repo . commits . limit ( @benchmark_run_display_count ) . pluck ( :id )
34
35
35
36
charts_columns = [ @form_result_type , "#{ @form_result_type } _memory" ] . each_with_index . map do |result_type , index |
You can’t perform that action at this time.
0 commit comments