Users per Trust Level -numbers not updating on admin dashboard

(Ville Säävuori) #1

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:

(Joffrey Jaffeux) #3

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.

(Ville Säävuori) #4

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

./launcher enter app

then from the commandline:

rails c

and there:


which resulted in:

root@appserver-app:/var/www/discourse# rails c
[1] pry(main)> Discourse.cache.clear
=> ["_CACHE_:settings_for_theme_6",
[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:

Groups page:

(Rafael dos Santos Silva) #5

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.

(Ville Säävuori) #6

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:

(Jeff Atwood) closed #7