Skip to content

Commit

Permalink
remove caching
Browse files Browse the repository at this point in the history
  • Loading branch information
taelor committed Nov 10, 2014
1 parent 845c677 commit b1b07e6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion app/controllers/episodes_controller.rb
Expand Up @@ -107,7 +107,7 @@ def generate_pdf
end

def expire_fragment_sidebar
expire_fragment('sidebar')
#expire_fragment('sidebar')
end

end
38 changes: 19 additions & 19 deletions app/views/layouts/application.html.haml
Expand Up @@ -54,25 +54,25 @@
= yield

<!-- end #content -->
- cache(:sidebar) do
#sidebar
%ul
%li
%h2 Upcoming Episodes
%ul
- Episode.where{air_datetime > Date.today}.each do |episode|
%li= link_to episode.shortened_title, episode, :class => "truncate"
%li
%h2 Recent Episodes
%ul
- @recent_episodes.each do |episode|
%li= link_to episode.shortened_title, episode, :class => "truncate"
%li
%h2 Tag Cloud
%p
- tag_cloud(Episode.tag_counts.order("name"), %w(tag1 tag2 tag3 tag4)) do |tag, css_class|
= link_to tag.name, "/tags/#{tag.name}", :class => css_class
<!-- - cache(:sidebar) do -->
#sidebar
%ul
%li
%h2 Upcoming Episodes
%ul
- Episode.where{air_datetime > Date.today}.each do |episode|
%li= link_to episode.shortened_title, episode, :class => "truncate"
%li
%h2 Recent Episodes
%ul
- @recent_episodes.each do |episode|
%li= link_to episode.shortened_title, episode, :class => "truncate"

%li
%h2 Tag Cloud
%p
- tag_cloud(Episode.tag_counts.order("name"), %w(tag1 tag2 tag3 tag4)) do |tag, css_class|
= link_to tag.name, "/tags/#{tag.name}", :class => css_class

<!-- end #sidebar -->
<div style="clear: both;">&nbsp;</div>
Expand Down

0 comments on commit b1b07e6

Please sign in to comment.