Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
41c04e72
Commit
41c04e72
authored
Aug 18, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add current locale to commit partial cache key
parent
133c72ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
changelogs/unreleased/dm-commit-cache-i18n.yml
changelogs/unreleased/dm-commit-cache-i18n.yml
+5
-0
No files found.
app/views/projects/commits/_commit.html.haml
View file @
41c04e72
...
...
@@ -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
...
...
changelogs/unreleased/dm-commit-cache-i18n.yml
0 → 100644
View file @
41c04e72
---
title
:
Add current locale to commit partial cache key
merge_request
:
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment