in reply to Database driven web content: live or tape?

My current predicament has to do with whether I should present the page information (piped through the very cool HTML::Template) live from the database or just generate the pages using a daily cron job.

There's a middle-ground option: Generate static pages whenever underlying data changes (or, get smarted and track dependencies so that you can generate a subset of the static pages whenever underlying data changes). You can still pretend to be fully dynamic by generating .shmtl pages, which will still get the benefit of Server-Side Includes (SSI) at page fetch time.

Look into how MoveableType handles this. It's a "middle ground" solution.

  • Comment on Re: Database driven web content: live or tape?

Replies are listed 'Best First'.
•Re: Re: Database driven web content: live or tape?
by merlyn (Sage) on Jul 19, 2002 at 19:45 UTC
    Or, another variant on this theme: use a 404-handler to generate a "missing page" as I did in one of my columns. The first hit automatically produces and caches the new page. All subsequent hits are "static". To invalidate a page, just delete it. The next hit recreates it with the new information.

    -- Randal L. Schwartz, Perl hacker

      Vignette does this exact thing. Works pretty well except the fact that they didn't release the source to thier Apace Module :-(. Nevery really thought about doin it with the Error handler and mod_perl.
      ++merlyn (like you need it) :-P

      An intellectual is someone whose mind watches itself.
      - Albert Camus