Add heroku slug commit to some cache keys (#6159) [deploy]
This commit is contained in:
parent
ee9b1f58b9
commit
055c826139
3 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% cache("main-article-right-sidebar-discussions-#{params[:timeframe]}", expires_in: (params[:timeframe].blank? ? 120 : 360).seconds) do %>
|
||||
<% cache("main-article-right-sidebar-discussions-#{params[:timeframe]}-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: (params[:timeframe].blank? ? 120 : 360).seconds) do %>
|
||||
<% @sidebar_ad = DisplayAd.for_display("sidebar_right") %>
|
||||
<% if @sidebar_ad %>
|
||||
<div class="widget">
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
<% end %>
|
||||
<%= javascript_pack_tag "homePage", defer: true %>
|
||||
|
||||
<% cache("main-stories-index-#{params}-#{user_signed_in?}", expires_in: 90.seconds) do %>
|
||||
<% cache("main-stories-index-#{params}-#{user_signed_in?}-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 90.seconds) do %>
|
||||
<div class="home" id="index-container"
|
||||
data-params="<%= params.to_json(only: %i[tag username q]) %>" data-which="<%= @list_of %>"
|
||||
data-algolia-tag=""
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<% if @default_home_feed && user_signed_in? %>
|
||||
<% cache("fetched-home-articles-object", expires_in: 3.minutes) do %>
|
||||
<% cache("fetched-home-articles-object-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 3.minutes) do %>
|
||||
<div id="followed-podcasts" data-episodes="<%= @podcast_episodes.to_json(include: { podcast: { only: %i[slug title id], methods: %i[image_90] } }) %>">
|
||||
</div>
|
||||
<div id="home-articles-object" data-articles="
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue