gitlab-org--gitlab-foss/app/views/projects/branches/destroy.js.haml
Yorick Peterse cb5a5ba095 Cache & flush tag/branch counts
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.
2016-03-08 18:19:40 +01:00

1 line
63 B
Text

$('.js-totalbranch-count').html("#{@repository.branch_count}")