Feed refresh

Use this cronjob to manually refresh the feeds which are managed in sections “Feeds” and are set to recurrence “Manually” (see Feeds).


The cronjob only handles feeds whose recurrence is set to “Manually”.

recurrence manually

The script to use can be found in ASA 2‘s subdirectory scripts.

Execute it like this:

cd .../wordpress/wp-content/plugins/amazon-simple-affiliate/scripts

bash script.sh Asa2_Module_Feeds_Cron_Feeds


This configuration will execute the feeds resfresh task every hour (at minute zero, every hour).

0 * * * * /[wp_path]/wp-content/plugins/amazon-simple-affiliate/scripts script.sh Asa2_Module_Feeds_Cron_Feeds

To learn more about cronjobs, see Introduction.



Without options, this cronjob will refresh all active feeds.


The option id is optional. It can be used to define the feeds to refreshed.

Possible values

  • ID (integer): The ID of one feed you want to refresh
  • List: A comma separated list of IDs to refresh multiple feeds at once, like: 1,2,3

You can find the ID in the first column of the feeds list table in section “Feeds”.

Feeds ID
// ID example:
bash script.sh Asa2_Module_Feeds_Cron_Feeds -id=2

// List example:
bash script.sh Asa2_Module_Feeds_Cron_Feeds -id=1,2,3,5
Feeds bash