Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Database driven web content: live or tape?by Hero Zzyzzx (Curate) |
on Jul 19, 2002 at 19:43 UTC ( [id://183414]=note: print w/replies, xml ) | Need Help?? |
Another option- Partially live. Use the excellent Cache::Cache to cache your output from HTML::Template, and then feed that to your users. Something like:
The cool thing about this is you can delete the page directly from the cache when it's updated, so you can set your expire times pretty long. In this example I'm caching the entire page, but you can (obviously) only cache the very expensive parts of your application, or NOT cache the parts you want to change on each instance. I like Cache::Cache a LOT, but you really need to benchmark to make sure you're saving time. -Any sufficiently advanced technology is
In Section
Seekers of Perl Wisdom
|
|