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. If the
page is not cached, it will let Apache handle the request normally, but
it will cache the output in disk before sending it to the client.
        This is simple and could be done with a proxy server instead of an
Apache module, but the cache must be cleaned whenever the page is
changed. I want to make this module and make an interface to clean the
cache when the page is updated.
        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.
        Do you think it can be done with existing modules or is it worth doing
a new module?
        Thanks.
        []s
        Luis

Matt Sergeant wrote:
> Can you tell us more about exactly what you're trying to achieve? Surely a
> script based page is going to be dynamic, so a cache is irrelevant. Unless
> your script is just doing some sort of templating, in which case I highly
> suggest you check out AxKit or Mason, which both support this kind of
> caching (and EmbPerl is going to do it in the next release I hear).
> 
> --
> <Matt/>

Reply via email to