PDA

View Full Version : Any chance of cron jobs?


backdoor
11-28-2007, 05:37 AM
Just wondering if you guys were considering ever adding this feature.

Tyler
11-28-2007, 06:09 AM
Nope, never. Really anything that you want to do with a cron job can be done by making a script that when a user goes to your site it checks the database to see if you have already run the script for the time you need to and if you haven't then run it and set the database to say that you have run it.

Cron jobs are often times mis used which cause the server to be overloaded running scripts that dont need to be run.

backdoor
11-28-2007, 06:19 AM
Really anything that you want to do with a cron job can be done by making a script that when a user goes to your site it checks the database to see if you have already run the script for the time you need to and if you haven't then run it and set the database to say that you have run it.

I was looking for a way to have a script update every 30 minutes, but everything I've tried has to been done as a user visits the page.

Tyler
11-28-2007, 03:27 PM
Why do you need it to update if no one is looking at it?

backdoor
11-28-2007, 10:32 PM
There is people looking at it, I want it to update every once in a while to cut loading times.

Tyler
11-29-2007, 01:02 AM
Just update it when they are loading it, it shouldnt take long and if it does then it probably will timeout on the server anyways. Or have it trigger it to update and continue loading the page and the next time they visit they will see it updated.