# Category post\_count not incrementing

**URL:** https://meta.discourse.org/t/category-post-count-not-incrementing/230788
**Category:** Bug
**Tags:** pr-welcome, rest-api
**Created:** [June 22, 2022, 5:02pm UTC](https://meta.discourse.org/t/category-post-count-not-incrementing/230788 "2022-06-22T17:02:07Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mmahacek1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mmahacek1/32/264520_2.png) [@mmahacek1](https://meta.discourse.org/u/mmahacek1)
#### Post date: [June 22, 2022, 5:02pm UTC](https://meta.discourse.org/t/category-post-count-not-incrementing/230788/1 "2022-06-22T17:02:08Z")

</div>

When pulling the categories.json, I notice that the `topic_count` value increases as topics are added, but `post_count` doesn’t seem to increase.  
If I pull `c/{slug}/{id}.json` to list the topics in the category, the `posts_count` for the individual topics is updating correctly, and the About web page shows the expected number of new daily posts.  
It’s just on the categories API that doesn’t seem to be reflecting the correct post count. Is this a known issue? Does the category post count only update periodically with a back end data rollup? Is there somewhere else I should be going to check category post counts?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 11, 2022, 6:46am UTC](https://meta.discourse.org/t/category-post-count-not-incrementing/230788/5 "2022-07-11T06:46:30Z")

</div>

This certainly sounds like a possible edge case in our API. We have many layers of cache and possibly this is one cache that we are not updating right away.

Putting a #pr-welcome on this in case someone from the community would like to try fixing.

---

<div class="post-metadata">

### Author: ![pdthomson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pdthomson/32/300560_2.png) [@pdthomson](https://meta.discourse.org/u/pdthomson)
#### Post date: [March 30, 2023, 6:09pm UTC](https://meta.discourse.org/t/category-post-count-not-incrementing/230788/6 "2023-03-30T18:09:45Z")

</div>

Hey Sam I am open to tackling this issue and see whats going on!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [March 31, 2023, 12:08am UTC](https://meta.discourse.org/t/category-post-count-not-incrementing/230788/7 "2023-03-31T00:08:32Z")

</div>

Sure Parker, happy for you to investigate!

---

<div class="post-metadata">

### Author: ![pdthomson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pdthomson/32/300560_2.png) [@pdthomson](https://meta.discourse.org/u/pdthomson)
#### Post date: [April 4, 2023, 12:12am UTC](https://meta.discourse.org/t/category-post-count-not-incrementing/230788/8 "2023-04-04T00:12:49Z")

</div>

Hey Sam! I have been sitting up the environment using the links from the ReadME and the trouble shooting page and have been updating/changing things with brew/node to get past this issue but I keep getting the same error

```No
Consider adding one of the following versions in your config file at
nodejs 16.15.0
nodejs 18.15.0
No version is set for command npm
Consider adding one of the following versions in your config file at
nodejs 16.15.0
nodejs 18.15.0

```

I am just curious if you have come across this and might know how to help me with it! Thanks so much in advance!
