![]() Instead of flushing the behind/ahead counts for all branches upon every push we now only flush the cache of branches that actually need to have these statistics recalculated. There are now basically 2 scenarios and their effects: 1. A user pushes a commit to the default branch, this results in the cache being flushed for all branches. 2. A user pushes to a non default branch, this results in _only_ the cache for that branch being flushed. The existing code (Repository#expire_cache) remains backwards compatible with the previous behaviour, the new behaviour is only applied when a branch name is passed as an argument. This ensures that when for example a project is deleted the cache for all branches is flushed. |
||
---|---|---|
.. | ||
ci | ||
files | ||
issues | ||
merge_requests | ||
milestones | ||
notes | ||
oauth2 | ||
projects | ||
search | ||
archive_repository_service.rb | ||
audit_event_service.rb | ||
base_service.rb | ||
compare_service.rb | ||
create_branch_service.rb | ||
create_commit_builds_service.rb | ||
create_release_service.rb | ||
create_snippet_service.rb | ||
create_spam_log_service.rb | ||
create_tag_service.rb | ||
delete_branch_service.rb | ||
delete_tag_service.rb | ||
delete_user_service.rb | ||
destroy_group_service.rb | ||
event_create_service.rb | ||
git_hooks_service.rb | ||
git_push_service.rb | ||
git_tag_push_service.rb | ||
gravatar_service.rb | ||
issuable_base_service.rb | ||
notification_service.rb | ||
repair_ldap_blocked_user_service.rb | ||
system_hooks_service.rb | ||
system_note_service.rb | ||
test_hook_service.rb | ||
update_release_service.rb | ||
update_snippet_service.rb |