gitlab-org--gitlab-foss/spec/services
Yorick Peterse 2ce0d06389 Smarter flushing of branch statistics caches
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.
2016-02-09 17:17:56 +01:00
..
ci
issues
merge_requests
milestones
notes
projects
archive_repository_service_spec.rb
create_commit_builds_service_spec.rb
create_release_service_spec.rb
create_snippet_service_spec.rb
destroy_group_service_spec.rb
event_create_service_spec.rb
git_hooks_service_spec.rb
git_push_service_spec.rb Smarter flushing of branch statistics caches 2016-02-09 17:17:56 +01:00
git_tag_push_service_spec.rb
notification_service_spec.rb
repair_ldap_blocked_user_service_spec.rb
search_service_spec.rb
system_hooks_service_spec.rb
system_note_service_spec.rb
test_hook_service_spec.rb
update_release_service_spec.rb
update_snippet_service_spec.rb