Remove unnecessary heroku slug commit values in cache keys (#5524)
This commit is contained in:
parent
74f9decc56
commit
7bfb255627
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@
|
|||
<% end %>
|
||||
<%= javascript_pack_tag "homePage", defer: true %>
|
||||
|
||||
<% cache("main-stories-index-#{params}-#{user_signed_in?}-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 90.seconds) do %>
|
||||
<% cache("main-stories-index-#{params}-#{user_signed_in?}", 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-#{ApplicationConfig['HEROKU_SLUG_COMMIT']}", expires_in: 3.minutes) do %>
|
||||
<% cache("fetched-home-articles-object", expires_in: 3.minutes) do %>
|
||||
<% @new_stories = Article.published.
|
||||
where("published_at > ? AND score > ?", rand(2..6).hours.ago, -15).
|
||||
limited_column_select.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue