Implement caching on admin event view

This commit is contained in:
James Mason 2018-02-23 00:06:10 -08:00
parent 4bd961f703
commit d40229a054
No known key found for this signature in database
GPG key ID: 1B3951886C449023

View file

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