On Wed, 12 Jul 2000, Luis Henrique Cassis Fagundes wrote:
> Hi,
> The module would handle the requests before any other modules and check
> in its database if there is a cached page for that request uri. If the
> page is cached, it will send the cached page and return DONE.
What if the page is cached but has changed? For any dynamically generated
page you're going to have to actually execute the request just to check if
its changed. Barely any dynamic content supports HEAD requests to allow
you to check the LastModified field.
If its static pages you're talking about, then leaving Apache to deliver
them will be faster anyhow.
> For example, you have a page that is generated from a database that is
> update by an administration program, and the page is updated every day,
> but re-generated every request. You just need to put some config lines
> in you httpd.conf to make my module cache the page, and add to the
> administration program some lines to remove the cache of the page X that
> have the parameter var=value in the QUERY STRING when it updates the
> database.
For that sort of thing you should look into either Mason or AxKit. They
are far better suited to your needs.
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org