# Category topic count incorrectly displaying number of posts

**URL:** https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485
**Category:** Support
**Created:** [April 18, 2024, 4:02pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485 "2024-04-18T16:02:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![anon82911141](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anon82911141](https://meta.discourse.org/u/anon82911141)
#### Post date: [April 18, 2024, 4:02pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/1 "2024-04-18T16:02:09Z")

</div>

Hi everyone,

I’m having a problem where on the main page of my Discourse instance, the categories are displayed with the number of topics. However, after permanently deleting a post, the number still does not go down - is there a way to resolve this? The number of posts is 5 even though there are 3 topics open and 2 have been permanently deleted.

Thanks!

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [April 18, 2024, 4:19pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/2 "2024-04-18T16:19:36Z")

</div>

Are you referring to this?

> [@Number on the side of categories showing number of topics made in the past week isn't correct](https://meta.discourse.org/t/number-on-the-side-of-categories-showing-number-of-topics-made-in-the-past-week-isnt-correct/295253):
>
> Hello! I noticed an odd thing on a forum I am a TL3 recently. In a private category I can see, the number shows that 13 topics were created in the past week. Do note I deleted the category name/info so I don’t leak anything I shouldn’t as it’s a private category. The names are the only thing I changed in the Chrome inspect tool. When I opened this category, however, there are only 2 topics created in the last month. “Pinned Topic” and “Topic #3” were not created in the last month, b…

---

<div class="post-metadata">

### Author: ![anon82911141](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anon82911141](https://meta.discourse.org/u/anon82911141)
#### Post date: [April 18, 2024, 4:57pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/3 "2024-04-18T16:57:04Z")

</div>

Hi ondrej,

No - I’m referring to normal lifetime category topic posts, not weekly posts.

Thanks.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 18, 2024, 5:08pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/4 "2024-04-18T17:08:34Z")

</div>

I think there’s a daily background job that would adjust those. How long has it been?

---

<div class="post-metadata">

### Author: ![anon82911141](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anon82911141](https://meta.discourse.org/u/anon82911141)
#### Post date: [April 18, 2024, 5:11pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/5 "2024-04-18T17:11:47Z")

</div>

Hi JammyDodger,

It’s been 3 hours - is there a way to manually run this background job?

Thanks!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [April 18, 2024, 5:56pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/6 "2024-04-18T17:56:43Z")

</div>

If you have access to your `/sidekiq/scheduler` page, you can manually trigger `jobs::EnsureDbConsistency`. Hopefully that kicks it back into line. 🤞

---

<div class="post-metadata">

### Author: ![anon82911141](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@anon82911141](https://meta.discourse.org/u/anon82911141)
#### Post date: [April 18, 2024, 6:11pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/7 "2024-04-18T18:11:55Z")

</div>

Thanks - that worked!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 18, 2024, 6:12pm UTC](https://meta.discourse.org/t/category-topic-count-incorrectly-displaying-number-of-posts/304485/8 "2024-05-18T18:12:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
