Cron job on multisite network

Hello Guys.

I've Purchased WooCommerce Simple Auctions plugin, but one of the requirements of the plugins is that i have to setup 2 cron jobs. You can see them below

"WooCommerce Simple Auctions plugin uses cronjobs and you have to setup two cronjobs:

once a day: /usr/local/bin/curl --silent http://www.your-domain.com/?auction-cron=mails
every minute: /usr/local/bin/curl --silent http://www.your-domain.com/?auction-cron=check"

You can see plugin here & full documentation:
Plugin: https://codecanyon.net/item/woocommerce-simple-auctions-wordpress-auctions/6811382
Doc: https://www.wpgenie.org/woocommerce-simple-auctions/documentation/

Is this possible to setup so that this plugins will work on my customers domains?

Have a great day!

Best Regards,
Rasmus

  • Adam Czajczyk

    Hello Rasmus,

    I hope you're well today and thank you for your question!

    I'm not familiar with the plugin you are referring to but I think the main issue here whether the plugin works on network level or if it's enabled on "per site" level.

    I understand that you've got there a Multisite with domains mapped to some sub-sites, is that
    correct?

    There are two factors that should be checked:

    1. Is plugin capable of running on per-site basis? Some plugins cannot be activated "site by site" and has to be network enabled. Also, even those network enabled only may either have a "common settigns" for all sites or per-sites "independent" settings.

    2. Is the URL that should be called by CRON available via your "customer domain"?

    The bottom line is: if the plugin can be activated per-site or is network-active but can be configured independently per each site then you should be okay.

    Best regards,
    Adam

  • Rasmus

    Hi Adam.

    Thanks for the reply.

    Yes, that is correct. I have installed the plugin and activated it on 2 different subdomains, one that is not redirected with domain mapping and one there is. They are acitvated on a per-site-basis and have their own settings in the WooCommerce menu in the dashboard.

    I've created the cron jobs in cPanel, but the links doesn't (but I dont know if they should?)
    - http://webshop11.webinnovate.dk/?auction-cron=mails
    - http://webshop11.webinnovate.dk/?auction-cron=check

    Best Regards,
    Rasmus

  • Adam Czajczyk

    Hello Rasmus!

    Thank you for your response and these additional information. Checking whether the plugin can work on "per-site" base was the first (though crucial in this case) step but that still is just a part of the problem.

    I've created the cron jobs in cPanel, but the links doesn't (but I dont know if they should?)

    I understand that you mean that the doesn't load/"work", is that right? I'm not sure whether they should produce any output in browser, I suppose they are not meant to. This is a difficult task to diagnose and the simplest way actually is by the "trial and error" process. That means that you should just observe the site and see if it works as expected (including e.g. sending scheduled mails etc).

    Both these links return HTTP "200 OK" response and that suggests that they are loaded fine, that's a good sign. Have you double-checked already if the plugin is working as expected?

    Best regards,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.