diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-08-18 17:06:17 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-08-18 17:06:46 +0200 |
commit | 41c04e728866bd66e10ecd2bd11b08fef8e1cdb7 (patch) | |
tree | a54a2d527b177ef2b229134b9e38c8f67b1684bd /app/views/projects | |
parent | 133c72ae421b97f483417d5c427721336719b5da (diff) | |
download | gitlab-ce-41c04e728866bd66e10ecd2bd11b08fef8e1cdb7.tar.gz |
Add current locale to commit partial cache key
Diffstat (limited to 'app/views/projects')
-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 |