Jump to content

Do not suspend on weekends


chrismfz

Recommended Posts

if you wanted to avoid using action hooks to do this, another way might be to modify the cron job in some way.

 

http://docs.whmcs.com/Crons

 

you could not run the cron job at weekends, only during the weekdays - though that would prevent invoices, reminders, currency updates etc from occurring too, so probably not ideal. :roll:

 

alternatively, you could modify your existing cron and split it into two separate crons - a complete one that runs only on weekdays, and a modified one that runs only at weekends, but uses the Option Flag settings to disable suspensions from occurring.

 

http://docs.whmcs.com/Crons#Option_Flags

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

You could indeed schedule your cron job to run only on weekdays. Any invoices that were due to be generated on weekends could be generated when the cron ran on Monday. However any reminders that were due to be sent over the weekend would not be sent.

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.

×
×
  • 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