Skip to content

Commit 5423934

Browse files
authored
Cache thread-attached cards per user as well as per forum (#97)
So that threads with no responses that one user starts aren’t served to other users
1 parent e6cd9f5 commit 5423934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/comment_threads/index.json.jbuilder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ by_id json,
88

99
json.cards do
1010
@case.cards.each do |card|
11-
json.cache! [card, @forum] do
11+
json.cache! [card, @forum, current_reader] do
1212
json.set! card.to_param do
1313
json.extract! card, :id, :position, :solid, :raw_content
1414
json.content card.content || ''

0 commit comments

Comments
 (0)