diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-11-09 21:16:42 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-11-10 19:45:26 +0800 |
commit | e39d21aeb1b0986de4fae2df1650bcde9011dce1 (patch) | |
tree | 6ef62d9357870a9a762de1b5db9637fb6d195d12 /app/views/projects/commits/_commit.html.haml | |
parent | dba65ab68050a216f57a15ab678606de0f533c56 (diff) | |
download | gitlab-ce-e39d21aeb1b0986de4fae2df1650bcde9011dce1.tar.gz |
Fix cache for commit status in commits list to respect branches
Diffstat (limited to 'app/views/projects/commits/_commit.html.haml')
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index 9f80a974d64..34855c54176 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -6,7 +6,7 @@ - note_count = notes.user.count - cache_key = [project.path_with_namespace, commit.id, current_application_settings, note_count] -- cache_key.push(commit.status) if commit.status +- cache_key.push(commit.status(ref)) if commit.status(ref) = cache(cache_key, expires_in: 1.day) do %li.commit.js-toggle-container{ id: "commit-#{commit.short_id}" } |