@baris said in How to reset the counting of topic and post each categories:
In mongo cli, for each category you have to run the below query replacing the correct values.
db.objects.update({_key: "category:<replace_category_id>"}, {$set: {"topic_count": "<replace_correct_topic_count>", "post_count": "<replace_correct_post_count>"}});
This works like a charm