diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-07 10:31:04 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-04-07 10:31:04 +0000 |
commit | a918e8bf277418048776a5d9c34a64b39f4e56f3 (patch) | |
tree | 6eb4c5f66e5ec0c99a11fc06be15880bf43a629b /app/models | |
parent | 144912851c388327c31387094ed9054a8e2b322c (diff) | |
parent | 27b9f64efbbce9d74eeb9c4ae340506242c474cb (diff) | |
download | gitlab-ce-a918e8bf277418048776a5d9c34a64b39f4e56f3.tar.gz |
Merge branch 'fix-project-404-cache-issue' into 'master'
Expire caches after project creation to ensure a consistent state
See merge request !3586
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index a8e826c9cbf..8dead3a5884 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -331,6 +331,8 @@ class Repository # Runs code after a repository has been created. def after_create expire_exists_cache + expire_root_ref_cache + expire_emptiness_caches end # Runs code just before a repository is deleted. |