[deploy] Move fragment cache to more efficient location (#7079)

* Move fragment cache to more efficient location

* Fix syntax error
This commit is contained in:
Ben Halpern 2020-04-04 19:47:50 -04:00 committed by GitHub
parent 1e4d7a5d2c
commit eaefd588aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,20 +44,20 @@
<% end %>
</head>
<% unless internal_navigation? %>
<body data-user-status="<%= user_logged_in_status %>" data-pusher-key="<%= ApplicationConfig["PUSHER_KEY"] %>">
<div id="body-styles"></div>
<% if user_signed_in? %>
<%= render "layouts/user_config" %>
<% end %>
<% cache(cache_key_heroku_slug("top-html-and-config--#{user_signed_in?}")) do %>
<body data-user-status="<%= user_logged_in_status %>" data-pusher-key="<%= ApplicationConfig["PUSHER_KEY"] %>">
<div id="body-styles"></div>
<% if user_signed_in? %>
<%= render "layouts/user_config" %>
<% end %>
<div id="audiocontent" data-podcast="">
<%= yield(:audio) %>
</div>
<% cache("application-top-bar--#{user_signed_in?}", expires_in: 100.hours) do %>
<%= render "layouts/top_bar" %>
<% end %>
<div id="message-notice"></div>
<div class="app-shell-loader">
loading...
</div>
<div id="message-notice"></div>
<div class="app-shell-loader">
loading...
</div>
<% end %>
<!-- End Top Shell -->
<% end %>