View Single Post
Old 12-08-2007, 06:00 AM   #2 (permalink)
Jay
The Contributor
Good Samaritan 
 
Join Date: Dec 2007
Posts: 60
Thanks: 5
Jay is on a distinguished road
Default

Yea, caching that page sounds like a great idea, depending on how you do it, of course.

The cron idea is great in most circumstances, but in low-traffic sites, the cron could produce more hits than.. visitors.

One thing to think about when timing the cron is: "Will there be a visitor at least every [time * 2] minutes?"

The other alternative to crons would be to make a self check:

(pseudo code)
PHP Code:
if( last_updated >= 10 minutes ago )
{
    
update_cache()

Jay is offline  
Reply With Quote