Skip to content

Commit d5f498b

Browse files
committed
need this for folder view
1 parent b9e6052 commit d5f498b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/controllers/folders_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def show
4040
.includes([:user, :page_tags, :universe])
4141
.order('documents.favorite DESC, documents.title ASC, documents.updated_at DESC')
4242

43+
# TODO: can we reuse this content to skip a few queries in this controller action?
44+
cache_linkable_content_for_each_content_type
45+
4346
if @universe_scope
4447
@content = @content.where(universe: @universe_scope)
4548
end

0 commit comments

Comments
 (0)