diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 6f4e0de5..65b0dd1d 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -4,12 +4,14 @@
@@ -23,8 +25,10 @@ @@ -44,8 +48,10 @@ @@ -65,8 +71,10 @@ @@ -86,8 +94,10 @@ @@ -257,8 +267,10 @@
- <% @posts.each do |post| %> - <%= render(Marketing::PostBlurbComponent.new(post: post)) %> + <% cache @posts, expires_in: 60.seconds do %> + <% @posts.each do |post| %> + <%= render(Marketing::PostBlurbComponent.new(post: post)) %> + <% end %> <% end %>