Jump to content

Whmcs Cron Job


Stevebc

Recommended Posts

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?

Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated