From eaefd588aa449a4cd379e66e4e269bdde2e6bc67 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Sat, 4 Apr 2020 19:47:50 -0400 Subject: [PATCH] [deploy] Move fragment cache to more efficient location (#7079) * Move fragment cache to more efficient location * Fix syntax error --- app/views/shell/_top.html.erb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/shell/_top.html.erb b/app/views/shell/_top.html.erb index d9d1e08e1..9c0c81786 100644 --- a/app/views/shell/_top.html.erb +++ b/app/views/shell/_top.html.erb @@ -44,20 +44,20 @@ <% end %> <% unless internal_navigation? %> - "> -
- <% if user_signed_in? %> - <%= render "layouts/user_config" %> - <% end %> + <% cache(cache_key_heroku_slug("top-html-and-config--#{user_signed_in?}")) do %> + "> +
+ <% if user_signed_in? %> + <%= render "layouts/user_config" %> + <% end %>
<%= yield(:audio) %>
- <% cache("application-top-bar--#{user_signed_in?}", expires_in: 100.hours) do %> <%= render "layouts/top_bar" %> - <% end %> -
-
- loading... -
+
+
+ loading... +
+ <% end %> <% end %>