Skip to content
Snippets Groups Projects
Unverified Commit 4d80360b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Cache markdown of comments

parent 40e31e1d
No related branches found
No related tags found
1 merge request!911Performance improvements after caching html fragments
Pipeline #
Loading
Loading
@@ -21,7 +21,7 @@
- if member
%span.note-role.label
= member.human_access
- if note.system
= link_to user_path(note.author) do
= image_tag avatar_icon(note.author_email), class: 'avatar s16', alt: ''
Loading
Loading
@@ -56,9 +56,10 @@
 
 
.note-body{class: note_editable?(note) ? 'js-task-list-container' : ''}
.note-text
= preserve do
= markdown(note.note, {no_header_anchors: true})
= cache [note, 'markdown'] do
.note-text
= preserve do
= markdown(note.note, {no_header_anchors: true})
= render 'projects/notes/edit_form', note: note
 
- if note.attachment.url
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment