diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-13 12:06:53 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-03-13 12:06:53 +0100 |
commit | 3f949a712f4eb0fcd64204ae5873381609f0c80d (patch) | |
tree | a177bc1f90a37bce30291b7292b8baa2a58752d8 /app | |
parent | f49868adf1a2ea24815d432640cd0d996e0d87a0 (diff) | |
download | gitlab-ce-3f949a712f4eb0fcd64204ae5873381609f0c80d.tar.gz |
Improve fragment caching rules at projects dashboard
Diffstat (limited to 'app')
-rw-r--r-- | app/views/shared/projects/_project.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/projects/_project.html.haml b/app/views/shared/projects/_project.html.haml index 4a27965754d..7e9fb7bb4d3 100644 --- a/app/views/shared/projects/_project.html.haml +++ b/app/views/shared/projects/_project.html.haml @@ -7,7 +7,7 @@ - show_last_commit_as_description = false unless local_assigns[:show_last_commit_as_description] == true && project.commit - css_class += " no-description" if project.description.blank? && !show_last_commit_as_description - cache_key = [project.namespace, project, controller.controller_name, controller.action_name, current_application_settings, 'v2.3'] -- cache_key.push(project.commit.status) if project.commit.try(:status) +- cache_key.push(project.commit&.sha, project.commit&.status) %li.project-row{ class: css_class } = cache(cache_key) do |