calentries cache key
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<% cache("calendar_" + @calentries.pluck(:id).join('') + @calentries.order(:updated_at).reverse_order.pluck(:updated_at).first.to_i.to_s) do %>
|
||||
|
||||
<% cache("calendar_" + @calentries.map{|c| c.id}.join('') + @calentries.max{|c|c.updated_at}.updated_at.to_i.to_s) do %>
|
||||
<%= render 'calendars/calentries', :object=>@calentries %>
|
||||
<% end %>
|
||||
<%= link_to "ics-format", calendar_path(@rubrik.calendar,:format=>:ics) %>
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<% cache("calendar_" + @calentries.pluck(:id).join('') + @calentries.order(:updated_at).reverse_order.pluck(:updated_at).first.to_i.to_s) do %>
|
||||
<% cache("calendar_" + @calentries.map{|c| c.id}.join('') + @calentries.max{|c|c.updated_at}.updated_at.to_i.to_s) do %>
|
||||
<%= render 'calendars/calentries', :object=>@calentries %>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user