Users per Trust Level -numbers not updating on admin dashboard

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 :slight_smile:

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.

3 Likes

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:

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

Groups page:

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.

4 Likes

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 :slight_smile:

Thank You for speedy responses :+1: