cascer1 / whmcs-enom-updater

Automatically update domain prices in WHMCS using current eNom prices for your account
MIT License
5 stars 1 forks source link

Improve daily cron #24

Open cascer1 opened 7 years ago

cascer1 commented 7 years ago

The daily cron job should fetch updated prices from eNom. There are a few difficulties for this:

  1. We depend on the daily WHMCS cron since the script cannot be called directly due to dependencies on WHMCS functions. Because of this, we only get one cron execution per day.
  2. The script is currently not efficient enough to update all configured TLD's in a single execution.

Once these issues are resolved, we will be able to further improve the daily cron job to import eNom prices instead of just removing expired promotions.

ref ticket MGY-863

lcwsoft commented 7 years ago

If you want to create a cron job, you could just create a cron.php file in your addon itself and then include init.php and the other WHMCS core files to get the needed functions from WHMCS.

I reported issue #26 and #27 but can help with this particular one if needed.

cascer1 commented 7 years ago

Thank you for the feedback, we were unable to find this in the WHMCS documentation before. Pull requests are always welcome if you have the time to submit one!