Revert Redis fragment cache (#4932) [deploy]
This commit is contained in:
parent
befefd08d0
commit
481871f127
2 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue