mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: properly pass topic_id to post action cache to avoid excessive query
in the past auto closing was forcing a consistency check on topic, which in turn was triggering a full post action cache rebuild
This commit is contained in:
@@ -280,7 +280,7 @@ SQL
|
||||
end
|
||||
|
||||
def self.ensure_consistency!(topic_id=nil)
|
||||
update_post_action_cache
|
||||
update_post_action_cache(topic_id: topic_id)
|
||||
|
||||
# TODO this needs some reworking, when we mark stuff skipped
|
||||
# we up these numbers so they are not in-sync
|
||||
|
||||
Reference in New Issue
Block a user