in reply to Re: Opening too many files?
in thread Opening too many files?

Now, I know SFA about web caching, but wouldn't it make more sense to check the various components' last-modified times, and rebuild the page if any of them has changed (ala make). You'd only have to worry about "how long has it been since this page was fetched" if it's part of your cache replacement strategy.

I was going to add something about this working best with a mostly static site, but I don't see how this would be worse than a timeout-based cache even for a fairly dynamic site. (Corrections are most welcome.)

--
:wq

Replies are listed 'Best First'.
Re: (FoxUni) Re(2): Opening too many files?
by clintp (Curate) on Jan 29, 2002 at 04:28 UTC
    Not a correction, a clarification perhaps.

    The original poster mentioned "forums" and "writeups". In a message system with threads, replies, etc.. all going on at the same time it might be almost as much trouble to find out if an article has replies that are newer than a pretermined mark than it would be to fetch the articles themselves.

    Unless, of course, it were built that way originally. From the OP's tone I gather it wasn't.

    Whereas assembling a page and presenting a recent but not completely dynamic view of the data wouldn't be harmful in the case of a message board.

    Using timestamps to determine if the static view should be rebuilt (or even having a background task doing it) isn't a bad strategy either if you can determine what your "timestamp" is.