move bottom_content article content to Redis (#4927)
This commit is contained in:
parent
441c216e66
commit
59e9971d06
2 changed files with 2 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ Rails/OutputSafety:
|
|||
- 'app/models/message.rb'
|
||||
- 'app/views/articles/_actions.html.erb'
|
||||
- 'app/views/articles/feed.rss.builder'
|
||||
- 'app/views/articles/show.html.erb'
|
||||
|
||||
# Offense count: 25
|
||||
# Cop supports --auto-correct.
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@
|
|||
<%= render "articles/full_comment_area" %>
|
||||
</div>
|
||||
|
||||
<% cache("article-bottom-content-#{@article.id}", expires_in: 18.hours) do %>
|
||||
<% RedisRailsCache.fetch("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