askvortsov/flarum-recalc-meta

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Recalculate Metadata

v0.1.0 2020-10-25 19:21 UTC

This package is auto-updated.

Last update: 2021-09-25 21:13:24 UTC


README

License Latest Stable Version

A Flarum extension. Sometimes, metadata counts get out of sync. This extension adds 3 commands to update them:

  • php flarum recalculate_stats:discussions recalculates first post, last post, comment count, and participant count metadata for each discussion.
  • php flarum recalculate_stats:tags discussion 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:users recalculates 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.

Installation

Install manually with composer:

composer require askvortsov/flarum-recalc-meta

Updating

composer update askvortsov/flarum-recalc-meta

Links