Skip to content
Snippets Groups Projects
Commit e39d21ae authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Fix cache for commit status in commits list to respect branches

parent dba65ab6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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}" }
Loading
Loading
---
title: Fix cache for commit status in commits list to respect branches
merge_request: 7372
author:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment