cb5a5ba095
The methods used for this are Repository#tag_count and Repository#branch_count which cache their output in Redis as well as memoizing it in an instance variable. Both methods have a corresponding methods/hooks to flush the caches at the right time.
1 line
63 B
Text
1 line
63 B
Text
$('.js-totalbranch-count').html("#{@repository.branch_count}")
|