Change caching rules to make sure cache is invalidated when response

rates are recalculated
This commit is contained in:
rebuilt 2022-07-05 10:18:50 -07:00
parent 2a03ec773d
commit 64be45217f

View file

@ -65,7 +65,7 @@
</svg>
<% end %>
<% cache [@school, @academic_year] do %>
<% cache [@school, @academic_year, ResponseRate.where(school: @school, academic_year: @academic_year).order(updated_at: :DESC).first.updated_at] do %>
<div class="card">
<div class="d-flex justify-content-between align-items-center">
<h2 class="sub-header-2">School Quality Framework Indicators</h2>