A Flarum extension. Sometimes, metadata counts get out of sync. This extension adds 3 commands to update them:
php flarum recalculate_stats:discussionsrecalculates first post, last post, comment count, and participant count metadata for each discussion.
php flarum recalculate_stats:tagsdiscussion count, comment count, and last posted discussion for each tag. This should ONLY be used if the askvortsov/categories discussion is installed.
php flarum recalculate_stats:usersrecalculates user discussion and post count for each user.
Please note that these commands can be very slow on large databases. This should not be used on extremely large databases.
Install manually with composer:
composer require askvortsov/flarum-recalc-meta
composer update askvortsov/flarum-recalc-meta