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.";
|