Please wait...
The campaign-grid-stats-cache-warmup command, introduced in MailWizz 2.1.2,
refreshes the statistics shown in the campaigns list. This saves MailWizz from having to
calculate those figures when someone opens the page.
Replace {ABSOLUTE_PATH_TO} with the full path to your MailWizz installation:
/usr/bin/php -q {ABSOLUTE_PATH_TO}/apps/console/console.php campaign-grid-stats-cache-warmupFor example, if MailWizz is installed in /var/www/html, run the following command.
The --verbose=1 option shows which campaigns it processes and their statistics.
/usr/bin/php /var/www/html/apps/console/console.php campaign-grid-stats-cache-warmup --verbose=1
To refresh the cache once a minute, add this cron job, using the path for your installation:
* * * * * /usr/bin/php /var/www/html/apps/console/console.php campaign-grid-stats-cache-warmup >/dev/null 2>&1
When the PHP command-line installation supports PCNTL, the command can process campaigns in parallel. Without PCNTL it processes them sequentially.