Crons

Status
Not open for further replies.

ashbow9794

New Member
Messages
2
Reaction score
0
Points
0
I'm getting a little bit annoyed right now, your hosting has been superb, but for some reason (this is the 3rd time now) all my crons keep dissapearing and it's quite time consuming getting the code and constantally putting the crons back in place... and I know that I'm not deleting them or anything.

Thanks, Ashley
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
IF there are 2 crons executing closer than 5 minutes at any given time it'll do that; my guess is cause you're on MCCodes Lite (free) the day and 5 minute are conflicting.

Ideally what you'd want to do is a bit complex but worth the effort - you'd want to actually make a custom php file that figures out if it's time to run the 24hr cron or not, but always does include("cron_fivemins.php"); which will run the 5 minute cron. If it's time to run the 24hr cron, then include("cron_day.php");

Then rather than adding crons for the fivemins and day files, you'd add a cron for the master file. 1 cron, but can run both of the scripts that need to be ran at the same time without ticking off the cron system :)
 

ashbow9794

New Member
Messages
2
Reaction score
0
Points
0
Thanks for the reply :D And yes I am...

The problem is, I haven't been learning coding for long at all, so I have absolutely no idea on how to do what you said :S
 
Status
Not open for further replies.
Top