Stuart Wright
Well-known member
It’s great that you’re using a cache. But shouldn’t the cache be cleared when recreating the list?So I checked. Banned users are not included in the lists when they're created.
The issue is if they're banned after a cache is already created they are not removed in real-time from that cache.
I'll see about purging a banned user from the most recent cache on ban action.
When we ban users, they are put in to a banned usergroup. It is that usergroup which I am excluding from the Top Contributors list.
What if a user is suspended? That’s just adding the Suspended usergroup.
Or put in to any of the usergroups we don’t want rewarded with the Top Contributors prize? Like the Adblocking usergroup from your other addon?
What if the user self disables using the self disable function of User Essentials?
I won’t pretend to know how caches should be managed, but the moment a user has one of the excluded user groups added to their account, they should not appear on the list.