Fix cache for commit status in commits list to respect branches
This commit is contained in:
parent
dba65ab680
commit
e39d21aeb1
2 changed files with 5 additions and 1 deletions
|
@ -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}" }
|
||||
|
|
4
changelogs/unreleased/fix-cache-for-commit-status.yml
Normal file
4
changelogs/unreleased/fix-cache-for-commit-status.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fix cache for commit status in commits list to respect branches
|
||||
merge_request: 7372
|
||||
author:
|
Loading…
Reference in a new issue