mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05: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:
parent
85d9b2d227
commit
7e259375e9
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ SQL
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.ensure_consistency!(topic_id=nil)
|
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
|
# TODO this needs some reworking, when we mark stuff skipped
|
||||||
# we up these numbers so they are not in-sync
|
# we up these numbers so they are not in-sync
|
||||||
|
|
Loading…
Reference in a new issue