Cron Jobs

I have two Cron Jobs running on two of my blogs. I received a message from my hosting company that they were using too much space or maybe it was bandwidth. They also threatened to up my space or delete the blogs. Is there a way to decrease the number of times the jobs run. Or is there some way to delete the updates that have already been obtained?

One of the sites is a games site and the other is a movie trailer site that updates using a cron script.

Staff Member

You cannot change how they've already ran in the past to reduce the CPU or memory usage they have taken, and it's unlikely a cron is taking up space unless it's writing files or logging, so it's likely CPU or memory that is the issue. Bandwidth can't be an issue either if they are running locally as that isn't going to utilize bandwidth.

For decreasing how frequently they run, you can check how often they run in cPanel > Cron Jobs > Advanced area. If you post here the time intervals for how often they run, we could tell you how to change the frequency.

I can note that if it is something like the following:

Code:

*/5 * * * *

This would mean every 5 minutes where it's like this:

*/5 = every 5 minutes (minute of the hour interval)
* = every hour (hour interval)
* = every day of the month (day of the month interval)
* = every month (month interval)
* = every day (day of the week interval)

If you wanted to change it to every 30 minutes, you could do:

Code:

*/30 * * * *

Or, you could have it run once an hour:

Code:

0 * * * *

The 0 here would mean run the cron at the 0 minute of the hour every hour.