Consistently use cache_key_heroku_slug (#6495)
This commit is contained in:
parent
48f4c2cafe
commit
555cb2d69e
8 changed files with 8 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<div id="sidebar-wrapper-left" class="sidebar-wrapper sidebar-wrapper-left">
|
||||
<div class="sidebar-bg" id="sidebar-bg-left"></div>
|
||||
<div class="side-bar">
|
||||
<% cache("main-sidebar-nav--#{user_signed_in?}-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 5.days) do %>
|
||||
<% cache(cache_key_heroku_slug("main-sidebar-nav--#{user_signed_in?}"), expires_in: 5.days) do %>
|
||||
<%= render "articles/sidebar_nav" %>
|
||||
<div class="widget widget-sponsorship <%= "showing" unless user_signed_in? %>" id="sponsorship-widget">
|
||||
<header>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<% title "Feedback" %>
|
||||
<% cache "feedback-messages-lander-styling-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}" do %>
|
||||
<% cache(cache_key_heroku_slug("feedback-messages-lander-styling")) do %>
|
||||
<style>
|
||||
<%= Rails.application.assets["feedback_messages.css"].to_s.html_safe %>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<% title "[Moderate] " + @moderatable.title %>
|
||||
|
||||
<% cache "mod-styling-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}" do %>
|
||||
<% cache(cache_key_heroku_slug("mod-styling")) do %>
|
||||
<style>
|
||||
<%= Rails.application.assets["moderators.css"].to_s.html_safe %>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<meta name="twitter:image:src" content="https://thepracticaldev.s3.amazonaws.com/i/bqzj1pwho9e0jicqo44s.png">
|
||||
|
||||
<style>
|
||||
<% cache "live-page-css-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 1.hour do %>
|
||||
<% cache(cache_key_heroku_slug("live-page-css"), expires_in: 1.hour) do %>
|
||||
<%= Rails.application.assets["live.css"].to_s.html_safe %>
|
||||
<% end %>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<% title "Welcome to #{ApplicationConfig['COMMUNITY_NAME']}" %>
|
||||
|
||||
<style>
|
||||
<% cache "onboarding-css-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 10.hours do %>
|
||||
<% cache(cache_key_heroku_slug("onboarding-css"), expires_in: 10.hours) do %>
|
||||
<%= Rails.application.assets["onboarding.css"].to_s.html_safe %>
|
||||
<%= Rails.application.assets["preact/onboarding-modal.css"].to_s.html_safe %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<% title "Partnerships and Sponsors" %>
|
||||
|
||||
<style>
|
||||
<% cache "partnership-org-section-credits-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 10.hours do %>
|
||||
<% cache(cache_key_heroku_slug("partnership-org-section-credits"), expires_in: 10.hours) do %>
|
||||
<%= Rails.application.assets["partnerships.css"].to_s.html_safe %>
|
||||
<% end %>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<% title "#{params[:option].titleize} Overview" %>
|
||||
|
||||
<style>
|
||||
<% cache "partnership-org-section-credits-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 10.hours do %>
|
||||
<% cache(cache_key_heroku_slug("partnership-org-section-credits"), expires_in: 10.hours) do %>
|
||||
<%= Rails.application.assets["partnerships.css"].to_s.html_safe %>
|
||||
<% end %>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<% title "Pro Membership" %>
|
||||
|
||||
<style>
|
||||
<% cache "partnership-org-section-credits-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 10.hours do %>
|
||||
<% cache(cache_key_heroku_slug("partnership-org-section-credits"), expires_in: 10.hours) do %>
|
||||
<%= Rails.application.assets["partnerships.css"].to_s.html_safe %>
|
||||
<% end %>
|
||||
</style>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue