# 게시물이 삭제되어도 태그 수가 변하지 않음

**URL:** https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384
**Category:** Bug
**Created:** [5월 4, 2020, 10:40오후 UTC](https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384 "2020-05-04T22:40:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![alexaw](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@alexaw](https://meta.discourse.org/u/alexaw)
#### Post date: [5월 4, 2020, 10:40오후 UTC](https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384/1 "2020-05-04T22:40:08Z")

</div>

토픽이 관리자나 일반 사용자에 의해 생성되었든, 관리자가 삭제한 후에는 관리자든 일반 사용자인든 `/tag` 페이지의 태그 수가 여전히 변경되지 않습니다.

메타에서 검색해 보니 이미 오래전에 해결된 버그라고 하던데, 방금 이 버그를 직접 경험했습니다.

> [@Incorrect Count on /tags page (included deleted topics - now fixed)](https://meta.discourse.org/t/incorrect-count-on-tags-page/53051):
>
> Summary: Over at Stonehearth it was noticed by an Admin today that the count on the /tags page is incorrect for some tags. Steps to reproduce: Unknown. Expected Results: Number next to tags matches number of topics seen when viewing individual tag page. Actual Results: Number next to tags is greater than the number of topics seen when viewing individual tag page. Notes: The difference between the number of topics with a tag and the number displayed appears to be constant i.e. ui had the …

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e4ae8fae1422e1f583eb1805b49b35bc028dec0c.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/4/e456cd726643d3b1f555e04d9bb12034233388e9.png)

재현 방법:

1. 새 토픽을 만들고 태그를 추가합니다.
2. `/tag`에서 태그 수를 확인합니다.
3. 관리자가 해당 토픽을 삭제합니다.
4. 다시 태그 수를 확인합니다.

Discourse 버전: 2.5.0.beta3 (0e4db91870)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 4, 2020, 11:26오후 UTC](https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384/2 "2020-05-04T23:26:23Z")

</div>

이 글로벌 카운트는 백그라운드 태스크에서 업데이트되고 캐싱이 강하게 이루어지기 때문에, 표시되려면 하루 정도 걸릴 수 있습니다.

---

<div class="post-metadata">

### Author: ![alexaw](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@alexaw](https://meta.discourse.org/u/alexaw)
#### Post date: [5월 4, 2020, 11:28오후 UTC](https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384/3 "2020-05-04T23:28:36Z")

</div>

감사합니다. 하루 이틀 후에 다시 확인해 보겠습니다.

---

<div class="post-metadata">

### Author: ![alexaw](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@alexaw](https://meta.discourse.org/u/alexaw)
#### Post date: [5월 7, 2020, 9:29오후 UTC](https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384/4 "2020-05-07T21:29:06Z")

</div>

@codinghorror

네, 확실히 캐시 문제인 것 같습니다. 하루 뒤에 보면 올바른 게시물 수가 표시됩니다.  
정말 감사합니다.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [5월 11, 2020, 4:46오전 UTC](https://meta.discourse.org/t/tag-counts-remain-unchanged-when-post-is-deleted/150384/5 "2020-05-11T04:46:41Z")

</div>


