# Force recount of topics in category after moving them

**URL:** <https://meta.discourse.org/t/force-recount-of-topics-in-category-after-moving-them/73026>\
**Category:** Product Support\
**Created:** [2017 年 10 月 30 日午前 3:37 UTC](https://meta.discourse.org/t/force-recount-of-topics-in-category-after-moving-them/73026 "2017-10-30T03:37:10Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)\
**Post date:** [2018 年 1 月 23 日午後 2:27 UTC](https://meta.discourse.org/t/force-recount-of-topics-in-category-after-moving-them/73026/7 "2018-01-23T14:27:59Z")

</div>

Mine also ran but didn’t change the counts. I also have one which is `-1` as well.

![image](https://global.discourse-cdn.com/meta/optimized/3X/b/8/b807e60ec22d327295dbd9520f4f85ee0603d111_2_690x39.png)

I will run the code from @fefrei and see if that makes a difference.

Edit: running the code worked in the rails console

---

_[View the full topic](https://meta.discourse.org/t/force-recount-of-topics-in-category-after-moving-them/73026)._
