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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9f4e1209
Commit
9f4e1209
authored
Jan 16, 2020
by
Kerri Miller
Committed by
Lin Jen-Shin
Jan 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable redis diff caching by default
parent
532050c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/kerrizor-enable-redis-diff-caching-by-default.yml
...eleased/kerrizor-enable-redis-diff-caching-by-default.yml
+5
-0
lib/gitlab/diff/file_collection/merge_request_diff_base.rb
lib/gitlab/diff/file_collection/merge_request_diff_base.rb
+1
-1
No files found.
changelogs/unreleased/kerrizor-enable-redis-diff-caching-by-default.yml
0 → 100644
View file @
9f4e1209
---
title
:
Enable redis HSET diff caching by default
merge_request
:
23105
author
:
type
:
performance
lib/gitlab/diff/file_collection/merge_request_diff_base.rb
View file @
9f4e1209
...
...
@@ -47,7 +47,7 @@ module Gitlab
private
def
cache
@cache
||=
if
Feature
.
enabled?
(
:hset_redis_diff_caching
,
project
)
@cache
||=
if
Feature
.
enabled?
(
:hset_redis_diff_caching
,
project
,
default_enabled:
true
)
Gitlab
::
Diff
::
HighlightCache
.
new
(
self
)
else
Gitlab
::
Diff
::
DeprecatedHighlightCache
.
new
(
self
)
...
...
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