This website requires JavaScript.
Explore
Help
Sign In
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
a6ba8647f9
gitlab-org--gitlab-foss
/
app
/
views
/
projects
/
branches
/
destroy.js.haml
2 lines
63 B
Text
Raw
Normal View
History
Unescape
Escape
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 11:38:23 -05:00
$('.js-totalbranch-count').html("#{@repository.branch_count}")
Copy permalink