Implement caching on admin event view

Resolves https://github.com/openSUSE/osem/issues/1985
This commit is contained in:
James Mason 2018-02-23 00:06:10 -08:00
parent a2ed9c0074
commit 31a3cb18b7

View file

@ -1,3 +1,4 @@
- cache ['admin/event', @conference, @program, @event] do
.row .row
.col-md-12 .col-md-12
%h3 %h3
@ -117,6 +118,7 @@
votes: @votes, votes: @votes,
conference_id: @conference.short_title conference_id: @conference.short_title
- cache [@conference, @event, @comments] do
.row .row
= link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link' = link_to "Comments (#{@comment_count})", '#', id: 'event-comment-link'
#comments-div #comments-div