XF 2.2 Cron task for user post counts

Wildcat Media

Well-known member
Is an update of the user post counts part of one of the scheduled tasks in XF?

If not, is it possible? I'm thinking it might not be that hard to create a cron entry for it.

Like any busy forum, the post count tends to drift a bit from what is actually in the database vs. the count stored in a user's profile. (Such as, when posts/threads are moved from a forum where posts don't count towards the total into a forum where they are counted, etc.) I'd just like to keep it closer in sync.
 
Member post counts are updated immediately when a post is made/deleted/undeleted.

Like any busy forum, the post count tends to drift a bit from what is actually in the database vs. the count stored in a user's profile.
That shouldn't be the case at all.
If it is happening then there's something wrong somewhere, unless it's due to this, which is per node:
count.png
 
I'd have to check the code but I think post counts are updated correctly when moving between forums.

The only time the count wouldn't change is for any posts already in the forum and the option setting is changed.
 
Back
Top Bottom