View Single Post
Old 10-22-2008, 05:54 PM  
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Why not do a mix of both? Instead of rebuilding the pages every X minutes - which itself will cause periodical CPU spikes - cache them. If the page requested hasn't yet been generated, generate it; if it has, then just readfile() the cache'd page. This should spread your load out nicely since most of the time you'll just be serving out a static page.

(I would personally use a 404 handler which creates true static .html if the page doesn't already exist, but that gets a bit more complicated config wise...)
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote