Skip to content

A platform for community discussion. Free, open, simple.

FIX: Everyone should be aware a cached summary is outdated. (#23438)

Roman Rizzi0f6ac634f4d8
diff --git a/app/services/topic_summarization.rb b/app/services/topic_summarization.rb
index e0c9ee87474..1d6d44651e7 100644
--- a/app/services/topic_summarization.rb
+++ b/app/services/topic_summarization.rb
@@ -18,9 +18,7 @@ class TopicSummarization
if use_cached?(existing_summary, can_summarize, current_topic_sha, !!opts[:skip_age_check])
# It's important that we signal a cached summary is outdated
- if can_summarize && new_targets?(existing_summary, current_topic_sha)
- existing_summary.mark_as_outdated
- end
+ existing_summary.mark_as_outdated if new_targets?(existing_summary, current_topic_sha)
return existing_summary
end