askvortsov/flarum-recalc-meta

Recalculate Metadata

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

This package is auto-updated.

Last update: 2024-03-26 02:40:59 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