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

In reply to Re^2: Flat Website From Database Website by sauoq
in thread Flat Website From Database Website by Cody Pendant

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.