setup for selected w cache
This commit is contained in:
parent
beab5b8e0c
commit
835f1acd6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue