Commit Graph

4 Commits

Author SHA1 Message Date
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
Robert Schilling 50c2efea03 don't lookup branch element - it might need to be escaped 2014-08-17 17:05:32 +02:00
Jeroen van Baarsen 4ac56fa1db Changed some stuff around after rebase 2014-05-23 20:26:31 +02:00
Jeroen van Baarsen d0e794cc1a Make sure the branch counter gets updated
When you delete a branch, the counters wont get updated automaticly,
this happends because of the JS nature of the original call. I've
fixed this by responding with a JS file, and recalculate the counters.

Fixes: #6030
2014-05-23 20:23:59 +02:00