From 8a3710f452dc2192c936b1b418d2e1a90f5ae65f Mon Sep 17 00:00:00 2001
From: Stan Hu <stanhu@gmail.com>
Date: Sun, 23 Oct 2016 10:45:08 -0700
Subject: Remove duplicate code in repository cache clearing

---
 app/models/repository.rb | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

(limited to 'app/models/repository.rb')

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
-- 
cgit v1.2.1