Luis Henrique Cassis Fagundes ([EMAIL PROTECTED]) said something to this effect:
> How do I use Apache::Registry to cache pages in disk? The module
> I have
> in mind is something transparent to the programmer, you just tell apache
> that some CGI (or PHP, or any request) will be cached and the server
> will cache the stdout in disk, and next time someone requests a page,
> the cached page will be sent.
> []s
> Luis
Luis,
Write a handler (or cgi script, or registry script, or NSAPI plugin, or PHP
page) that handles 404 Errors, generates the (static) page, and writes it to
the location in the file system where the requested page should live. The
next time it is called, it will be treated like any other HTML file request.
The fastest way to cache pages is to have them be regular HTML.
Another option is to set up whatever handler you want, on a development or
staging server (i.e., not the live one), and grab the pages
with lynx -dump or GET or an LWP script, and write them to the proper
places in the filesystem where the live server can access them.
With a little planning, this can be incorporated
into a cron job that runs nightly (or hourly, whatever) for stuff that is
updated regularly but is composed of discernable chunks.
Good luck.
(darren)
--
Of course God is a vi user. If he used emacs, he'd still be waiting for it to
load on the seventh day.