summaryrefslogtreecommitdiff
path: root/app/helpers/projects_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-05-12 18:26:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-05-12 18:27:59 +0300
commitbbd1be002b15ad50b559c217c4e2f9d50a79ef20 (patch)
tree781f7cebf2f7aaa25568f5c0d60f0eebfe1f38d1 /app/helpers/projects_helper.rb
parent1028e05378f1fd25b49d95f36cf577a2b819844d (diff)
downloadgitlab-ce-bbd1be002b15ad50b559c217c4e2f9d50a79ef20.tar.gz
Change project list cache key to use route.cache_key instead of namespacedz-project-list-cache-key
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/projects_helper.rb')
-rw-r--r--app/helpers/projects_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index fd85217debf..98bbcfaaba5 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -158,8 +158,7 @@ module ProjectsHelper
def project_list_cache_key(project)
key = [
- 'parent/' + project.namespace.parent_full_path,
- project.namespace.cache_key,
+ project.route.cache_key,
project.cache_key,
controller.controller_name,
controller.action_name,