My site requires 1 minute cron jobs. Is this acceptable?
Please reply ..
-CJ
My site requires 1 minute cron jobs. Is this acceptable?
Please reply ..
-CJ
No, unless you are on paid. 5 minutes is the minimum for free accounts. Why do you need such a quick interval? There are ways to simulate this without being so resource intensive.
Last edited by garrettroyce; 12-20-2009 at 09:56 AM.
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
I am running a RPGThis needs the 1 minute cron for the energy bar, brave bar, Jail and Hosp time ... Ect ... but i could find a script to do it without crons but may take a while ..
Last edited by cjholderplayer; 12-20-2009 at 10:00 AM.
All you would need to do is put a iframe at the bottom of the page for the game and have it load your cron script.
On your page:
Make sure cron.php will print out the follow at it's completion:Code:<IFrame Src="path/to/cron.php" Scrolling=No Frameborder=0 Marginheight=0 Marginwidth=0 Width=1 Height=1 />
Replacing path/to/cron.php with your real path and content="5" with how many seconds until the refresh.Code:<Meta Http-equiv="Refresh" Content="5 />
Modified from the code here: http://www.frontpagewebmaster.com/m-116141/tm.htm
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
Thank you! I will try this..
Would you like to join my game?
Yeah, no problem. I can't join right now, I'm supposed to be working on my own project and I get distracted too easily![]()
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
:laugh: What project is that?And no problem ... I only started the game yesterday :P My friend and i are still thinking of crime ideas and Items ect ..
Just be aware if you end up using mega-resources on every run of the script, it'll suspend you for excessive resource use. Just FYI.
The physics is theoretical but the fun is real.