Revert Redis fragment cache (#4932) [deploy]

This commit is contained in:
Ben Halpern 2019-11-25 19:33:30 -05:00 committed by GitHub
parent befefd08d0
commit 481871f127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@
</div>
<div class="profile-image">
<a href="/<%= organization.slug %>">
<% RedisRailsCache.fetch("article-organization-image-#{organization.id}-#{organization.updated_at.rfc3339}", expires_in: 100.hours) do %>
<% cache("article-organization-image-#{organization.id}-#{organization.updated_at.rfc3339}", expires_in: 100.hours) do %>
<img src="<%= ProfileImage.new(organization).get %>" alt="<%= organization.name %>" />
<% end %>
</a>

View file

@ -199,7 +199,7 @@
<%= render "articles/full_comment_area" %>
</div>
<% RedisRailsCache.fetch("article-bottom-content-#{@article.id}", expires_in: 18.hours) do %>
<% cache("article-bottom-content-#{@article.id}", expires_in: 18.hours) do %>
<% @classic_article = Suggester::Articles::Classic.new(@article, not_ids: [@article.id]).get.first %>
<% if @classic_article %>
<%= render "additional_content_boxes/article_box",