diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-13 10:57:03 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-05-20 15:58:36 -0500 |
commit | ab96ca2bf1ae72817ff5cedf1792c8f7563ebdef (patch) | |
tree | acd247a2f19a43a2686bbec797fcec93f7846738 /app/models | |
parent | 79620c501da19bfda5818b8dca75b6ec9c10e762 (diff) | |
download | gitlab-ce-ab96ca2bf1ae72817ff5cedf1792c8f7563ebdef.tar.gz |
Dropdown implementationzj-gitignore-dropdown
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/repository.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index f26278cc3af..ecc8795c954 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -245,7 +245,7 @@ class Repository def cache_keys %i(size branch_names tag_names commit_count readme version contribution_guide changelog - license_blob license_key) + license_blob license_key gitignore) end def build_cache @@ -256,6 +256,10 @@ class Repository end end + def expire_gitignore + cache.expire(:gitignore) + end + def expire_tags_cache cache.expire(:tag_names) @tags = nil |