Add caching rules so page displays all analysis graphs

pull/1/head
rebuilt 3 years ago
parent ff14bad102
commit 3775762ed4

@ -17,8 +17,7 @@
<%= render partial: "data_filters", locals: {district: @district, school: @school, academic_year: @academic_year, category: @category, subcategory: @subcategory} %>
</div>
<%# TODO : make sure the caching rules work with the new graphs %>
<% cache [@subcategory, @school, @selected_academic_years, @response_rate_timestamp] do %>
<% cache [@subcategory, @school, @selected_academic_years, @response_rate_timestamp, @graph, @selected_races] do %>
<div class="bg-color-white flex-grow-1 col-9">
<% @measures.each do |measure| %>
<section class="mb-6">

Loading…
Cancel
Save