From 6e712cd199d995ee2161a2ac9ebdc618a9785e59 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 23 Feb 2022 21:25:01 +0000 Subject: [PATCH] Added caching to the school#show page --- app/views/schools/show.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/schools/show.html.erb b/app/views/schools/show.html.erb index 2276e3f..fb8e682 100644 --- a/app/views/schools/show.html.erb +++ b/app/views/schools/show.html.erb @@ -1,3 +1,4 @@ +<% cache ["#{@school.id}_school_show", @school] do %>

Name: <%= @school.name %> @@ -60,7 +61,7 @@ <% end %> - +<% end %> <% if can? :manage, @school %> <%= render 'baums_roster_import' %> <% end %>