add a different set of cache keys for the Display Ads in alignment with the sidebar ads (#18695)
This commit is contained in:
parent
b6d90a65b4
commit
617061c54e
1 changed files with 3 additions and 1 deletions
|
|
@ -190,7 +190,7 @@
|
|||
|
||||
</article>
|
||||
|
||||
<% cache("article-bottom-content-#{@article.id}-#{user_signed_in?}-#{(@organization || @user).latest_article_updated_at}", expires_in: 18.hours) do %>
|
||||
<% cache("article-bottom-content-#{rand(5)}-#{@article.id}-#{user_signed_in?}-#{(@organization || @user).latest_article_updated_at}", expires_in: 15.minutes) do %>
|
||||
<% @display_ad = DisplayAd.for_display("post_comments", user_signed_in?, @article.decorate.cached_tag_list_array) %>
|
||||
<% if @display_ad %>
|
||||
<div class="crayons-card crayons-card--secondary p-4 crayons-sponsorship-article text-styles"
|
||||
|
|
@ -201,7 +201,9 @@
|
|||
<%= @display_ad.processed_html.html_safe %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% cache("article-bottom-content-#{@article.id}-#{user_signed_in?}-#{(@organization || @user).latest_article_updated_at}", expires_in: 18.hours) do %>
|
||||
<% suggested_articles = Articles::Suggest.call(@article, max: 4) %>
|
||||
<%= render "articles/bottom_content", articles: suggested_articles %>
|
||||
<% end %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue