mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
PERF: cache category topic ids
This commit is contained in:
@ -7,7 +7,7 @@ class SuggestedTopicsBuilder
|
||||
def initialize(topic)
|
||||
@excluded_topic_ids = [topic.id]
|
||||
@category_id = topic.category_id
|
||||
@category_topic_ids = Category.pluck(:topic_id).compact
|
||||
@category_topic_ids = Category.topic_ids
|
||||
@results = []
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user