diff --git a/app/views/shared/_item_card.html.erb b/app/views/shared/_item_card.html.erb index 16627a1..90ca7ec 100644 --- a/app/views/shared/_item_card.html.erb +++ b/app/views/shared/_item_card.html.erb @@ -1,5 +1,7 @@ <% @products = (@templates if type.eql?('templates')) || (@extensions if type.eql?('extensions')) %> -<% @products.each do |product| %> + +<% cache [ 'product list', expires_in: 60.seconds ] do %> + <% @products.each do |product| %>
@@ -10,10 +12,11 @@
<%= content_tag(:h2, (link_to product.title, product), :class => "item-title") %> - <%= content_tag(:p, (link_to "Developer: "+product.author, "/"+type+"/developer?id=rulingcom"), :class => "developer-title") %> + <%= content_tag(:p, (link_to "Developer: #{product.author}"), :class => "developer-title") %> <%= render :partial => "shared/stars_rank" if type != 'templates' %> <%= content_tag(:p, product.price.nil?.eql?(true) ? 'Free' : product.price, :class => "price-container") %>
+ <% end %> <% end %> \ No newline at end of file