posts: don't cache rendered notes.

Don't cache rendered notes in Redis. Rendering notes shouldn't be
expensive normally.
This commit is contained in:
evazion
2020-03-28 18:25:30 -05:00
parent 70aac1d4b8
commit c5260f4927

View File

@@ -124,9 +124,7 @@
<section id="notes" style="display: none;">
<% if @post.has_notes? %>
<% cache("p/#{@post.id}/n/#{@post.last_noted_at.to_i}") do %>
<%= render :partial => "notes/note", :collection => @post.notes.active %>
<% end %>
<%= render partial: "notes/note", collection: @post.notes.active %>
<% end %>
</section>