On Thu, 19 Dec 2002, Cory Trese wrote:

> Has anyone used HTML::Template as a general caching system for XML or text
> files?  Is their a compelling reason not to?

No, and I wouldn't recommend it.  HTML::Template contains thousands of
lines of Perl code that would go to waste if used as a "only" caching
system.

For mod_perl, all you need to do is load the files into memory on startup
in a global hash.  Then the memory will be accessible from, and shared
between, all Apache children.  If you need something more complicated,
there are other ways to do it: DB_File, Cache::Cache (slowish),
Cache::Mmap (weird, make sure you read the docs carefully), File::Cache,
etc.

-sam




-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to