in reply to Flat Website From Database Website

i have never used squid, but it might be worth a try. if you correct a mistake, just fix it and invalidate the cache of this page.

update: s/index/cache/

Replies are listed 'Best First'.
Re^2: Flat Website From Database Website
by sauoq (Abbot) on Nov 06, 2005 at 02:50 UTC
    i have never used squid, but it might be worth a try.

    I get the feeling that would be like swatting flies with a sledgehammer in this case. There's a very nice trick you can do with mod_rewrite which would probably be all the OP needs. It goes something like this (untested):

    RewriteCond %{REQUEST_FILENAME} \.html$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule /?(.*)$ /cgi-bin/generate.pl/$1
    It needs more rules to make it really robust, but that's the general idea. Of course, generate.pl creates the static file and to "invalidate the cache", you just delete the static file and request the page.

    Of course, this assumes Apache... but everybody runs Apache, right? :-)

    -sauoq
    "My two cents aren't worth a dime.";