Fix cache for commit status in commits list to respect branches

This commit is contained in:
Lin Jen-Shin 2016-11-09 21:16:42 +08:00
parent dba65ab680
commit e39d21aeb1
2 changed files with 5 additions and 1 deletions

View file

@ -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}" }

View file

@ -0,0 +1,4 @@
---
title: Fix cache for commit status in commits list to respect branches
merge_request: 7372
author: