setup for selected w cache

This commit is contained in:
Peter Bhat Harkins 2023-08-13 16:00:41 -05:00
parent beab5b8e0c
commit 835f1acd6e
1 changed files with 2 additions and 2 deletions

View File

@ -148,10 +148,10 @@ class StoriesController < ApplicationController
end
Rails.cache.delete("user:#{@user.id}:unread_replies") if @user
@comments = #get_arranged_comments_from_cache(params[:id]) do
@comments = get_arranged_comments_from_cache(params[:id]) do
@story.merged_comments
.includes(:user, :story, :hat, :votes => :user)
#end
end
@title = @story.title
@short_url = @story.short_id_url