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:
Sam 2015-02-03 15:59:26 +11:00
parent 85d9b2d227
commit 7e259375e9
1 changed files with 1 additions and 1 deletions

View File

@ -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