diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-10-02 15:11:25 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-10-02 15:11:25 +0300 |
commit | c6ae33a6f1af27866a5c16061d88d83987746205 (patch) | |
tree | 4a540df4d926728a2bb941528e8ed13dc5d786fb | |
parent | 87fa1b44bf2ae2191c11b4986fe0bf4eb80df0d8 (diff) |
Remove `empty_repo?` from `MEMOIZED_CACHED_METHODS`
It's only cached in 10.1 currently.
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |