Add some caching

openid
Marcin Kulik 11 years ago
parent f2e462e1cb
commit 50299ca250

@ -1,14 +1,15 @@
.preview
= link_to asciicast, class: 'thumbnail-link' do
.play-button
span.arrow
span.glyphicon.glyphicon-play
.thumbnail
= asciicast.thumbnail(60, 15)
- cache ['thumbnail', asciicast] do
.preview
= link_to asciicast, class: 'thumbnail-link' do
.play-button
span.arrow
span.glyphicon.glyphicon-play
.thumbnail
= asciicast.thumbnail(60, 15)
.info.clearfix
h2
= link_to asciicast.title, asciicast
span.duration = asciicast.formatted_duration
span.author-avatar = asciicast.author_img_link
small by #{asciicast.author_link} #{time_ago_tag asciicast.created_at}
.info.clearfix
h2
= link_to asciicast.title, asciicast
span.duration = asciicast.formatted_duration
span.author-avatar = asciicast.author_img_link
small by #{asciicast.author_link} #{time_ago_tag asciicast.created_at}

@ -1,9 +1,10 @@
- content_for :content do
.container
.row
.col-md-3
= render 'docs_topics', current_category: @current_category
.col-md-9
= yield
- cache do
.container
.row
.col-md-3
= render 'docs_topics', current_category: @current_category
.col-md-9
= yield
= render :template => 'layouts/application'

@ -1,5 +1,6 @@
- content_for :content do
.container.pages
= yield
- cache do
.container.pages
= yield
= render template: 'layouts/application'

Loading…
Cancel
Save