Adjust commit partial cache key to fix browse buttons
This commit is contained in:
parent
5cd1a48d5e
commit
12e939672c
2 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
- notes = commit.notes
|
- notes = commit.notes
|
||||||
- note_count = notes.user.count
|
- 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_key.push(commit.status(ref)) if commit.status(ref)
|
||||||
|
|
||||||
= cache(cache_key, expires_in: 1.day) do
|
= cache(cache_key, expires_in: 1.day) do
|
||||||
|
|
4
changelogs/unreleased/dm-commit-row-browse-button.yml
Normal file
4
changelogs/unreleased/dm-commit-row-browse-button.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Adjust commit partial cache key to fix browse buttons
|
||||||
|
merge_request:
|
||||||
|
author:
|
Loading…
Reference in a new issue