diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index eb67a9eec..c4a04b846 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index d8e5b5b07..bc686752c 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -199,7 +199,7 @@ <%= render "articles/full_comment_area" %> - <% 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",