Small cached attribute fix (#2663)
* Add profile_image_90 to serialized data on article * Cached org tweaks
This commit is contained in:
parent
5e64ae874e
commit
4c3a9b483e
2 changed files with 1 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<div class="container show-page-content-display"
|
||||
data-details="<%= article.cached_organization&.slug %>__<%= article.slug %>"
|
||||
data-details="<%= article.organization&.slug %>__<%= article.slug %>"
|
||||
id="<%= classification == "boosted" ? "partner-content-display" : "classic_article_#{article.id}" %>">
|
||||
<div class="content-classification">
|
||||
<span class="content-classification-text"><%= classification_text %></span>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
<% cache("fetched-home-articles-object", expires_in: 8.minutes) do %>
|
||||
<% @new_stories = Article.published.
|
||||
where("published_at > ? AND score > ?", rand(2..6).hours.ago, -30).
|
||||
includes(:user).
|
||||
limited_column_select.
|
||||
order("published_at DESC").
|
||||
limit(rand(15..60)).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue