Skip to content

Commit

Permalink
don't store all the details of affected in the cache key
Browse files Browse the repository at this point in the history
instead we are just keeping the updated_at value which will be enough to bust the cache

Co-authored-by: Aaron Manaloto <[email protected]>
  • Loading branch information
MattBudz and aapomm authored Jun 27, 2024
1 parent 64652f9 commit 6c0e79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/issues/_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</thead>
<tbody>
<% issues.each do |issue| %>
<% cache [issue, @all_columns, issue.try(:affected), issue.try(:state), 'issues-table', @tags] do %>
<% cache [issue, @all_columns, issue.try(:affected_count), issue.affected.pluck(:updated_at), issue.try(:state), 'issues-table', @tags] do %>
<tr id="issue-<%= issue.id %>" data-tag-url="<%= project_issue_path(current_project, issue) %>">
<td class="select-checkbox" data-behavior="select-checkbox"></td>
<% @all_columns.each do |column| %>
Expand Down

0 comments on commit 6c0e79d

Please sign in to comment.