Merge branch 'dm-commit-cache-i18n' into 'master'
Add current locale to commit partial cache key Closes #36591 See merge request !13669
This commit is contained in:
commit
8936a92e81
2 changed files with 6 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
- notes = commit.notes
|
||||
- note_count = notes.user.count
|
||||
|
||||
- cache_key = [project.full_path, commit.id, current_application_settings, note_count, @path.presence, current_controller?(:commits)]
|
||||
- cache_key = [project.full_path, commit.id, current_application_settings, note_count, @path.presence, current_controller?(:commits), I18n.locale]
|
||||
- cache_key.push(commit.status(ref)) if commit.status(ref)
|
||||
|
||||
= cache(cache_key, expires_in: 1.day) do
|
||||
|
|
5
changelogs/unreleased/dm-commit-cache-i18n.yml
Normal file
5
changelogs/unreleased/dm-commit-cache-i18n.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Commit rows would occasionally render with the wrong language
|
||||
merge_request:
|
||||
author:
|
||||
type: fixed
|
Loading…
Reference in a new issue