I was thinking about something similar myself. The problem is not so
much getting a static html cache, because that's already possible, but
getting a predictable filename and an easy way to access the timeout/
expiry, without using PHP. My goal would be using Lighttpd with a very
short Lua script to serve a static version, without having to start
the PHP interpreter and setting the mtime to a future date as expiry.
As it was only an idea and I didn't really had much time I just took a
quick look if that would be possible with Zend_Cache, but found out,
that methods I'd need are declared as private.
nico
Pádraic Brady wrote:
Hi all,
In between writing and actually finishing proposals for a change
(Zend_Oauth will be ready this weekend!), I've been putting together
some fragments of code I've been using with Zend_Cache over the
months.
At present, Zend_Cache offers the Page Frontend which does a really
great job, but there are cases where caching to static HTML files is
an option and I would like to propose such an addition. It's not
without it's problems, especially since Backend validation seems to
be performed by the Frontend (Zend_Cache_Core has a few private
static methods), but I can muddle on through :).
Any comments or ideas are welcome. In the future I may also take a
stab at looking into integrating cache control closer to our
Controllers, Views and Models since to be honest, the present DIY
system has me writing lots of wiring code and managing cache expiry
manually in a dozen different ways depending on my mood. I like to
think adding better integration would alleviate some of this pain
for others.
Being the writer of mega 4000 word blog posts that I am (think my
wrist just fell off...), I've written up a barebones prototype as
part of another fabulous put-you-to-sleep blog post. I'll be posting
it over the weekend, but if anyone is interested in a quick copy now
to see what I'm moaning about, just drop me a line.
Best regards,
Paddy
Pádraic Brady
http://blog.astrumfutura.com
http://www.survivethedeepend.com
OpenID Europe Foundation Irish Representative