diff options
author | Stan Hu <stanhu@gmail.com> | 2016-04-07 10:23:02 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-04-07 10:29:01 +0300 |
commit | 27b9f64efbbce9d74eeb9c4ae340506242c474cb (patch) | |
tree | a83ef198b7127053c8920a39d12600e2a3200c73 /app/models/repository.rb | |
parent | 8f0945311b8f5fe30b0b57739ee9f3262499f375 (diff) |
Expire caches after project creation to ensure a consistent state
Closes #14961
Diffstat (limited to 'app/models/repository.rb')
-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. |