Follow

Set up cronjob for WP All Import

There are many customers trusting SetCronJob to run their WordPress plugin WP All Import.

Recommended account for setting up WP All Import plugin: Gold account ($20 / year) or higher.

The official documentation for setting up cronjob can be found at http://www.wpallimport.com/documentation/recurring/cron/

Notice: Please follow the instruction at http://www.wpallimport.com/documentation/advanced/import-processing/, select the option Iterative, Piece-By-Piece Processing, and set it to process about 5 - 10 records at a time. It'll lower your "processing" cronjob execution time, and minimize problems.

You need to set up 2 cronjobs: "trigger" and "processing" for each import.


To set up "trigger" cronjob:

- Click Create cronjob

- Enter the trigger URL into "URL to call" field

The trigger URL looks like this:

http://YOUR-WEBSITE.com/wp-cron.php?import_key=[YOUR_SECRET_KEY]&import_id=[YOUR_IMPORT_ID]&action=trigger

- Select When to call: "Every day"

- Click Save cronjob

Expected results

HTTP/1.1 200 OK
......

{"status":200,"message":"#****** Cron job triggered."}

To set up "processing" cronjob:

- Click Create cronjob

- Enter the trigger URL into "URL to call" field

The trigger URL looks like this:

http://YOUR-WEBSITE.com/wp-cron.php?import_key=[YOUR_SECRET_KEY]&import_id=[YOUR_IMPORT_ID]&action=processing

- Select When to call: "Every 2 minutes"

- Click Save cronjob

Expected results:

When the "triggered" import is processed completely:

HTTP/1.1 200 OK
......

{"status":200,"message":"Import #****** complete"}

When the previous "triggered" import was already processed, and there is nothing left to do:


HTTP/1.1 200 OK
......
{"status":403,"message":"Import #5 is not triggered. Request skipped."}

0 Comments

Please sign in to leave a comment.