This cronjob processes the “Advanced Ratings Mode” queue. Therefore it only works in combination with activated Advanced ratings mode.
Execute it like this:
cd /path-to-your-wp-installation/wp-content/plugins/amazon-simple-affiliate/scripts bash script.sh Asa2_Cron_Ratings
It is recommended to execute the ratings refresh cronjob every three minutes. If there are no problems and you have a lot of products, you can increase the frequency to every minute.
Replace [wp_path] with the local server path of your WordPress installation.
0/3 * * * * /[wp_path]/wp-content/plugins/amazon-simple-affiliate/scripts/script.sh Asa2_Cron_Ratings
To learn more about cronjobs, see Introduction.
Can be used to define a pause in seconds between each processed rating. Can be set globally for all executions with the option Cronjob pause.
// to set a pause of 2 seconds: bash script.sh Asa2_Cron_Ratings --pause=2
The quantity option can be used to set the quantity of products to be processed. Can be set globally for all executions with the option Cronjob items per run.
// to process 5 products in a cronjob run: bash script.sh Asa2_Cron_Ratings --quantity=5
Use the verbose option to get more information on the console.
bash script.sh Asa2_Cron_Ratings --verbose