Expire branch cache for bulk creation only once
What does this MR do and why?
Contributes to #368614
Problem
We expire the branch cache after every new created branch. It's inefficient and leads to N extra Redis calls.
Solution
Expire cache once after adding all new branches.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.