• Resolved surferliving

    (@surferliving)


    Hi Kuba,

    I’m with a host WP Engine, which doesn’t offer a cron job option on c-panel but they do have an alternate cron setting, which they’ve turned on for me. I now need to run crons to update product datafeeds. I’ve used WP All Import to import the data and they’ve provided some instructions on Trigger scripts and Processing scripts but when I try to figure out what they are saying, combined with the documentation on Advanced Cron Manager, I’m totally lost.

    Here’s what they are telling me to do…

    ——————————-
    Each import has two cron URLs – a trigger URL, and a processing URL.

    The trigger URL will look something like this:
    http://YOUR-WEBSITE.com/wp-cron.php?import_key=%5BYOUR_SECRET_KEY%5D&import_id=%5BYOUR_IMPORT_ID%5D&action=trigger

    The processing URL will look something like this:
    http://YOUR-WEBSITE.com/wp-cron.php?import_key=%5BYOUR_SECRET_KEY%5D&import_id=%5BYOUR_IMPORT_ID%5D&action=processing

    You can find your secret key on the WP All Import -> Settings screen, and the import ID on the Manage Imports screen.

    If you want to run your import every 24 hours, you should run the trigger URL every 24 hours. If you want to run your import once per week, you should run the trigger URL every week.

    The processing URL should be run every two minutes because it may not finish your import in one run. The reason is that many hosts have maximum script execution times in place, so its only possible for the processing script to finish only a small percentage of your import before it is timed out.
    ————————

    There is no documentation regarding hooks or function.php codes. So I’m not sure what to do. I thought by using the plugin, I could just past the url of the datafeed, which looks like this…

    http://datafeed.avantlink.com/download_feed.php?id=199021&auth=e057a06b6434b09e162533aec011141e

    Or the Trigger and Processing scripts, which look like this…

    http://mydomain.com/wp-cron.php?import_key=RFQxF951&import_id=25&action=trigger
    http://mydomain.com/wp-cron.php?import_key=RFQxF951&import_id=25&action=processing

    Any help would be greatly appreciated.

    PS. I’m adding about 100 cron jobs so do I just need 1 call in the function.php or do I need different calls/ scripts for each? Sorry for being such a novice but this is such a huge part of our website because it is a shopping site that needs to have prices and such constantly updated. Thanks again.

    https://wordpress.org/plugins/advanced-cron-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cron beginner trying to set up cron jobs… totally lost!’ is closed to new replies.