Stevebc Posted December 12, 2014 Share Posted December 12, 2014 Hi! I need to run the Whmcs cron job more than once per day: about every 1-2 hours. This way i can have client status Active/Inactive updated frequently and when a product runs out it will be set to Terminated quickly. If i set it to run so quickly, there will be issues? Can i be safe? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 12, 2014 Share Posted December 12, 2014 perhaps you could use Options Flags to have your main cron run once per day, but then have additional cron jobs run every two hours that just update clientstatus, terminations etc. http://docs.whmcs.com/Crons#Option_Flags 0 Quote Link to comment Share on other sites More sharing options...
Stevebc Posted December 13, 2014 Author Share Posted December 13, 2014 perhaps you could use Options Flags to have your main cron run once per day, but then have additional cron jobs run every two hours that just update clientstatus, terminations etc. http://docs.whmcs.com/Crons#Option_Flags so i could use clientstatussync and fixedtermterminations.... because i read on whmcs wiki that the cron job "must be run only once per day" ps: got another question (ill post it here just to avoid opening another thread) I want to create a hook which gets triggered when in my whmcs admin panel, under pending orders, I click "Accept Order" green button. Have i to use "AcceptOrder" hook type? Coz it seems to not get triggered 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted December 15, 2014 WHMCS Support Manager Share Posted December 15, 2014 Hi, The full cron.php should only be run once per day. You can run individual functions more often if you wish - hence why the option flags exist. I'd recommend opening a separate thread in the Customisation & Incrementation forum with your hook question. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.