Campaign grid stats cache warmup command

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.

    • Related Articles

    • Clear cache command

      The way AppMail works in most cases where performance is important, is that it fetches the data from the database once, then it will store it in cache and serve it from there for as much as possible. This allows AppMail to perform fast because data ...
    • Move inactive subscriber's command

      Starting with version 1.3.7.1 we introduced the move-inactive-subscribers command which will move subscribers that did not open a campaign or did not click a link in a campaign in a given period of time. The command has the following signature: ...
    • Delete inactive subscribers command

      Starting with version 1.3.7.1 we introduced the delete-inactive-subscribers command which will delete subscribers that did not open a campaign or did not click a link in a campaign in a given period of time. The command has the following signature: ...
    • Delete campaigns command

      Deleting old campaigns, that you don't need anymore, will free up a lot of disk space. This in turn will result in a faster application because there will be less data AppMail has to go through in order to complete operations. The delete-campaigns ...
    • Delivery Servers Warmup Plans

      Starting with the version 2.1.10 we added the delivery servers Warmup Plans feature, which was long requested by our customers. Some background on the "Warming Process" Delivery server warming is the gradual process of establishing a reputation as a ...