PDA

View Full Version : Cron.php from ... well ... cron :) Good interval?


kjkoster
03-21-2009, 06:39 PM
Dear All,

I want to move calling cron.php from being called as part of the user page loading into a task scheduled in cron. All in the name of making my site appear as quick as possible.

What is a good interval to call the script at? Should I call it once every five minutes, or is once per hour sufficient?

What factors contribute to the necessary interval?

Right now I'm going to go with calling it every 5 minutes.

Kees Jan

Paul M
03-21-2009, 07:17 PM
How is this going to make your site appear quicker ?

kjkoster
03-21-2009, 08:06 PM
Dear Paul,

By not having the spinner run for longer than necessary.

I did say *appear*. :)

Kees Jan

Dismounted
03-22-2009, 05:16 AM
It really depends what you're trying to do with the script...

kjkoster
03-22-2009, 06:18 AM
Dear Dismounted,

My site uses the stock vbulletin cron script. All I'm trying to do is automate calling that script so that it does not have to be part of the user's requests any longer.

So *I* don't want to do anything with the script. I just need to know how often vbulletin likes to be cronned.

Kees Jan

Lynne
03-22-2009, 04:04 PM
You can see the times the Scheduled Tasks are supposed to run, and how often, in the Scheduled Task Manager. That should give you an idea of how often you want to run your cron script.

kjkoster
03-23-2009, 08:01 AM
Dear Lynne,

That is precisely the information I needed. Excellent. Thank you.

From the scheduled tasks I see that running once every 10 minutes is all I need to do.

Kees Jan