When I optimize my git repository via shell (git gc --aggressive), the new size of the repository is not shown by gitlab.
How can I refresh the shown repo size in Gitlab?
After every push to repo Gitlab reset cached data:
def expire_cache
Rails.cache.delete(cache_key(:size))
Rails.cache.delete(cache_key(:branch_names))
Rails.cache.delete(cache_key(:tag_names))
Rails.cache.delete(cache_key(:commit_count))
Rails.cache.delete(cache_key(:graph_log))
end
As you can see - repo size in cache.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With