Please wait...
Campaign grid stats cache warmup command
Starting with version 2.1.2 we introduced the campaign-grid-stats-cache-warmup command which will keep up-to-date the cache for the stats shown in the campaigns grid view.
The command has the following signature:
command: /usr/bin/php -q {ABSOLUTE_PATH_TO}/apps/console/console.php campaign-grid-stats-cache-warmup
So a valid call to this command will look like:
/usr/bin/php /var/www/html/apps/console/console.php campaign-grid-stats-cache-warmup --verbose=1
You can place this command in a cron job to run once every minute, like:
* * * * * /usr/bin/php /var/www/html/apps/console/console.php campaign-grid-stats-cache-warmup >/dev/null 2>&1
The command makes use of PHP's PCNTL functionality, and it will try to run a number of processes in parallel to finish processing all campaigns as fast as possible.