提交 92f87f6d 编写于 作者: R Robert Speicher

Merge branch 'dm-commit-row-browse-button' into 'master'

Adjust commit partial cache key to fix browse buttons

Closes #26899

See merge request !12393
......@@ -5,7 +5,7 @@
- notes = commit.notes
- note_count = notes.user.count
- cache_key = [project.path_with_namespace, commit.id, current_application_settings, note_count]
- cache_key = [project.path_with_namespace, commit.id, current_application_settings, note_count, @path.presence, current_controller?(:commits)]
- cache_key.push(commit.status(ref)) if commit.status(ref)
= cache(cache_key, expires_in: 1.day) do
......
---
title: Fix inconsistent display of the "Browse files" button in the commit list
merge_request:
author:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册