From c6ae33a6f1af27866a5c16061d88d83987746205 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 2 Oct 2017 14:11:25 +0200 Subject: Remove `empty_repo?` from `MEMOIZED_CACHED_METHODS` It's only cached in 10.1 currently. --- app/models/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index a032df89e2d..ca6adef9979 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -36,7 +36,7 @@ class Repository tag_count avatar exists? empty? root_ref has_visible_content?).freeze # Methods that use cache_method but only memoize the value - MEMOIZED_CACHED_METHODS = %i(license empty_repo?).freeze + MEMOIZED_CACHED_METHODS = %i(license).freeze # Certain method caches should be refreshed when certain types of files are # changed. This Hash maps file types (as returned by Gitlab::FileDetector) to -- cgit v1.2.3