Cron Aggregates

justbetter/magento2-cron-aggregates

Adds a cron job and CLI command to rebuild Magento's monthly and yearly sales report aggregates automatically, avoiding missing data and admin-endpoint timeouts on large stores.

Installs cleanlyPHPStan level 4Build passing
Supported Magento versions
2.4.9
License
MIT
Categories
Administration & Backend, Analytics & Tracking

687 installs★ 0 stars107 downloads/monthLatest: v1.0.0Released 2026-03-31

composer require justbetter/magento2-cron-aggregates

README

Reproduced from the package’s own README, under its own license, as of 2026-10-31. Links and images point back at the source repository.

Magento 2 Cron Aggregates

By default Magento only rebuilds the aggregates when an admin clicks on a button. This may result in missing or incorrect data, on larger shops it could even lead to timeouts. This module adds a cron and a command to run the aggregates automatically.

Main Functionalities

Calculate the montly and yearly aggregates using the cron instead of an admin endpoint

Installation

  • composer require justbetter/magento2-cron-aggregates
  • bin/magento module:enable JustBetter_CronAggregates
  • bin/magento setup:upgrade
  • bin/magento setup:di:compile
  • bin/magento setup:static-content:deploy

Ideas, bugs or suggestions?

Please create a issue or a pull request.

License

The MIT License (MIT). Please see License File for more information.

← All packages from justbetter