Skip to content

Commit

Permalink
fixing cache key in the projects index
Browse files Browse the repository at this point in the history
  • Loading branch information
akitaonrails committed Aug 26, 2016
1 parent ccda732 commit bb9aea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/projects/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<div class="row item">
<div class="col-md-12">
<div class="col-md-8">
<% cache "#{current_user.id}/projects/activities_group/view", expires: 30.minutes do %>
<% cache "#{current_user.id}/projects/activities_group/view", expires: 10.minutes do %>
<%= render 'activities_group', activities_group: Activity.grouped_activities(@projects, 1.week.ago) %>
<% end %>
</div>

<div class="col-md-4">
<ul class="list-group">
<% cache "{current_user.id/projects/list}", expires: 1.day do %>
<% cache "#{current_user.id}/projects/list", expires: 1.day do %>
<%= render @projects %>
<% end %>
</ul>
Expand Down

0 comments on commit bb9aea2

Please sign in to comment.