diff options
author | Stan Hu <stanhu@gmail.com> | 2016-10-23 10:45:08 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-10-23 10:45:08 -0700 |
commit | 8a3710f452dc2192c936b1b418d2e1a90f5ae65f (patch) | |
tree | 9026fa65e40fe6702ed888f8ab361ea272e705c5 /app/models/repository.rb | |
parent | 4ea1973f5971f9c72230779d28f228b5da1148af (diff) | |
download | gitlab-ce-8a3710f452dc2192c936b1b418d2e1a90f5ae65f.tar.gz |
Remove duplicate code in repository cache clearingsh-flush-cache-after-import
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index c0460e3952f..4ae9c20726f 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -445,14 +445,7 @@ class Repository expire_cache if exists? - # expire cache that don't depend on repository data (when expiring) - expire_tags_cache - expire_tag_count_cache - expire_branches_cache - expire_branch_count_cache - expire_root_ref_cache - expire_emptiness_caches - expire_exists_cache + expire_content_cache repository_event(:remove_repository) end |