diff options
author | Robert Speicher <robert@gitlab.com> | 2017-08-18 19:56:16 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-08-18 19:56:16 +0000 |
commit | 8936a92e811f51011eb405e379b0ca563b34936f (patch) | |
tree | 9b7bcdc7dca4a13857b7f8b11e1ebe054bb8cc30 /app | |
parent | cd9b6175564f4e50db0ac54350e93ed32dc08b04 (diff) | |
parent | 630a83448b5bf20c10bec2392977fbfd656707f0 (diff) | |
download | gitlab-ce-8936a92e811f51011eb405e379b0ca563b34936f.tar.gz |
Merge branch 'dm-commit-cache-i18n' into 'master'
Add current locale to commit partial cache key
Closes #36591
See merge request !13669
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index e7da47032be..7e8a5a38086 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -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 |