<% content_for :title_bar do %>
  <% if policy(Project).new? %>
    <%= link_to t('projects.new project'), new_project_path, class: 'btn btn-primary' %>
  <% end %>
<% end %>

<div id="projects" class="projects-list">
  <div class="row item">
    <div class="col-md-12">
      <div class="col-md-8">
        <% cache "#{current_user.id}/projects/activities_group/view", expires_in: 5.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_in: 10.minutes do %>
            <%= render @projects %>
          <% end %>
        </ul>
      </div>
    </div>
  </div>
</div>


<% content_for :title_bar do %>
  <% if policy(Project).new? %>
    <%= link_to t('projects.new project'), new_project_path, class: 'btn btn-primary' %>
  <% end %>
<% end %>

<div id="projects" class="projects-list">
  <div class="row item">
    <div class="col-md-12">
      <div class="col-md-8">
        <%= render 'activities_group', activities_group: Activity.grouped_activities(@projects, 1.week.ago) %>
      </div>

      <div class="col-md-4">
        <ul class="list-group">
          <%= render @projects %>
        </ul>
      </div>
    </div>
  </div>
</div>

Remove cache from projects/index page
Remove cache from projects/index page
