Re: reducing overhead of index.php loading
dvanhorn <[email protected]> Mon, 19 Jan 2004 15:16:59 -0500
| Newsgroups | gmane.org.ballistichelmet.devel |
|---|---|
| Message-ID | <[email protected]> |
dvanhorn wrote: > 0,10,20,30,40,50 * * * * /home/bh/local/bin/mmrss > 0,10,20,30,40,50 * * * * /home/bh/local/bin/latestheads > > /home/bh/local/www/latestheads.html This output file path is of course wrong. Drop the local. > The page load time is noticably faster. I don't know if cron will run these > jobs sequentially or in parallel. If in parallel we could see a problem with > the RSS file being only partially written when latestheads starts to read it, > but we'll just have to wait an see. If so, just add 1 minute to each interval > for the latestheads cron line. I changed the cron entry to be one long command with ;'s in order to force the sequential ordering. Also I changed latestheads to latestrss which now takes 1 command line argument that names the RSS feed to pull from. You'll notice that the rants are now on the front page, generated using latestrss rants_5. David