summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-07 10:31:04 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-07 10:31:04 +0000
commita918e8bf277418048776a5d9c34a64b39f4e56f3 (patch)
tree6eb4c5f66e5ec0c99a11fc06be15880bf43a629b /app/models
parent144912851c388327c31387094ed9054a8e2b322c (diff)
parent27b9f64efbbce9d74eeb9c4ae340506242c474cb (diff)
downloadgitlab-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.rb2
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.