# 各信任级别用户数 - 管理仪表板数据未更新

**URL:** https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781
**Category:** Bug
**Created:** [2019年五月15日 09:00 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781 "2019-05-15T09:00:45Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Uninen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uninen/32/66432_2.png) [@Uninen](https://meta.discourse.org/u/Uninen)
#### Post date: [2019年五月15日 09:00 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781/1 "2019-05-15T09:00:45Z")

</div>

I run the latest docker install and after being frustrated for a looong time about how my users aren’t getting levelled up, I noticed that they actually are but the numbers on the admin dasboard are just stuck. They have been unchanged for at least weeks now, but if I look at `/g`, it seems to show the current real numbers. (Or at least the numbers on the group pages have evolved.)

Is there a way to force reset those admin dashboard badges or somehow debug the issue further? I love the admin dashboard page as it’s so information-rich so I’d very much love to see the trust level numbers from there as well 🙂

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2019年五月15日 09:02 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781/3 "2019-05-15T09:02:13Z")

</div>

If you can run a rails console : `Discourse.cache.clear` should update it, it shouldn’t be needed though. Will investigate later to see if I can repro.

---

<div class="post-metadata">

### Author: ![Uninen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uninen/32/66432_2.png) [@Uninen](https://meta.discourse.org/u/Uninen)
#### Post date: [2019年五月15日 15:36 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781/4 "2019-05-15T15:36:39Z")

</div>

So my config is app.yml, I did the following:

`./launcher enter app`

then from the commandline:

`rails c`

and there:

`Discourse.cache.clear`

which resulted in:

```plaintext
root@appserver-app:/var/www/discourse# rails c
[1] pry(main)> Discourse.cache.clear
=> ["_CACHE_:settings_for_theme_6",
 "_CACHE_:onebox__https://www.youtube.com/",
 "_CACHE_:inline_onebox:https://backstage.slipmat.io/t/first-steps-at-backstage/1150",
 "_CACHE_:onebox__https://backstage.slipmat.io/t/",
 "_CACHE_:watched-words-regexp:block",
 "_CACHE_:staff_tag_names",
 "_CACHE_:watched-words-regexp:require_approval",
 "_CACHE_:custom_emojis:v9:plugin-emoji",
 "_CACHE_:settings_for_theme_7",
 "_CACHE_:onebox__https://slipmat.io/djuninen/2019-5-test-event/",
 "_CACHE_:settings_for_theme_3",
 "_CACHE_:watched-words-regexp:flag"]
[2] pry(main)>

```

..but the stats are still different on admin dashboard and on groups page. They just show different number of users. See attached screenshots.

**Admin dashboard:**

 ![06](https://global.discourse-cdn.com/meta/original/3X/3/a/3ad24865f4734b015e2bd7dcd11c7dddf69d9db9.png)

**Groups page:**

 ![49](https://global.discourse-cdn.com/meta/original/3X/1/9/19e839ca43c776f8eec8b6e7d3b8c071966b25fc.png)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019年五月15日 15:39 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781/5 "2019-05-15T15:39:37Z")

</div>

Dashboard numbers are exclusive, while groups are inclusive.

Every TL4 user is a TL0, TL1, TL2 and TL3 user too.

You have 3 users in TL3 but two of those are also TL4.

---

<div class="post-metadata">

### Author: ![Uninen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uninen/32/66432_2.png) [@Uninen](https://meta.discourse.org/u/Uninen)
#### Post date: [2019年五月15日 16:02 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781/6 "2019-05-15T16:02:24Z")

</div>

> [@Falco](#):
>
> Dashboard numbers are exclusive, while groups are inclusive.

Oh, okay, that makes sense!

I’m still a bit baffled by the dashboard numbers staying the same despite new users joining via SSO, but maybe that’s just my flaky memory and not an issue with the system 🙂

Thank You for speedy responses 👍

---

<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: [2019年五月15日 16:30 UTC](https://meta.discourse.org/t/users-per-trust-level-numbers-not-updating-on-admin-dashboard/117781/7 "2019-05-15T16:30:18Z")

</div>


