diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-02-08 12:50:55 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-02-08 15:40:19 +0100 |
commit | 9a99d8e49dc07faaaa2fae436423e11dab5a7d7e (patch) | |
tree | de208a478614dfc317f444969480fa56013ee809 /spec/routing | |
parent | 7322c5a05bc018108123194e4e542bb04d42b2b2 (diff) | |
download | gitlab-ce-9a99d8e49dc07faaaa2fae436423e11dab5a7d7e.tar.gz |
Cache various Repository Git operationscaching-repository-git-operations
This caches the output of the following methods:
* Repository#empty?
* Repository#has_visible_content?
* Repository#root_ref
The cache for Repository#has_visible_content? is flushed whenever a
commit is pushed to a new branch or an existing branch is removed.
The cache for Repository#root_ref is only flushed whenever a user
changes the default branch of a project. The cache for Repository#empty?
is never explicitly flushed as there's no need for it.
Diffstat (limited to 'spec/routing')
0 files changed, 0 insertions, 0 deletions