Skip to content

Cronjob Calculator ​

This calculator helps you to configure the Product Update Cronjob, which automatically updates the data of your products on the server side.

Enter the number of products that are in your Products section, change the cronjob execution conditions if necessary, and copy the result.

Within what time should all products be updated?

How often the cronjob should / can be executed.

Result

The cronjob runs 72 times within 6 hour(s) and refreshes up to 2 products per run.

Server-side cronjob

text
*/5 * * * * bash /[wp_path]/wp-content/plugins/amazon-simple-affiliate/scripts/script.sh Asa2_Module_Repo_Cron_Refresh --lifetime=21600 --limit=2

REST API endpoint

text
https://example.com/wp-json/asa2/v1/product-update/?token=[your-token]&limit=2&lifetime=21600

Additional settings ​

Important

When using the cronjob, the option Deactivate auto-refresh (Options / Products) must be activated.

It is also highly recommended to activate Server-side request limit handling (Options / Advanced) to prevent request throttling issues.

For WP-Cron and other ways to run the cronjob, see Cronjob Setup.

ASA2 - The Amazon Affiliate Plugin for WordPress