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
11abd795
Commit
11abd795
authored
Oct 16, 2020
by
Patrick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable caching of markdown when viewing blob
parent
8ae07187
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/models/blob_viewer/markup.rb
app/models/blob_viewer/markup.rb
+1
-1
changelogs/unreleased/263406-enable-cached-markdown-blob-default.yml
...unreleased/263406-enable-cached-markdown-blob-default.yml
+5
-0
config/feature_flags/development/cached_markdown_blob.yml
config/feature_flags/development/cached_markdown_blob.yml
+1
-1
No files found.
app/models/blob_viewer/markup.rb
View file @
11abd795
...
...
@@ -14,7 +14,7 @@ module BlobViewer
{}.
tap
do
|
h
|
h
[
:rendered
]
=
blob
.
rendered_markup
if
blob
.
respond_to?
(
:rendered_markup
)
if
Feature
.
enabled?
(
:cached_markdown_blob
,
blob
.
project
)
if
Feature
.
enabled?
(
:cached_markdown_blob
,
blob
.
project
,
default_enabled:
true
)
h
[
:cache_key
]
=
[
'blob'
,
blob
.
id
,
'commit'
,
blob
.
commit_id
]
end
end
...
...
changelogs/unreleased/263406-enable-cached-markdown-blob-default.yml
0 → 100644
View file @
11abd795
---
title
:
Enable caching of markdown when viewing blob
merge_request
:
45367
author
:
type
:
performance
config/feature_flags/development/cached_markdown_blob.yml
View file @
11abd795
...
...
@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44300
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/263406
type
:
development
group
:
group::source code
default_enabled
:
fals
e
default_enabled
:
tru
e
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