Skip to content

Commit

Permalink
removed the cache call, since when the affilliation changes the perso…
Browse files Browse the repository at this point in the history
…n does not, and it did not trigger the cache update
  • Loading branch information
kf8a committed Sep 18, 2024
1 parent aef733d commit 516f054
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/views/people/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<% else %>
<% people = role.people.uniq.sort {|a,b| a.affiliations.find_by_role_id(role).seniority.to_s + a.sur_name <=> b.affiliations.find_by_role_id(role).seniority.to_s + b.sur_name}
%>
<% cache(people) do %>
<% people_per_column = people.count/3 + 1 %>
<div class="first one-third">
<ul class="person-card">
Expand All @@ -47,7 +46,6 @@
</ul>
</div>
<% end %>
<% end %>
<% end %>
<br />

Expand Down

0 comments on commit 516f054

Please sign in to comment.