Anthony Gardner wrote:
Just realised, I could use Apache::Cache.

Don't use that. The shared memory implementation is really slow. If you need a cache, use Cache::FastMmap.

A cache of this kind is not what you need for this though. You can't stuff filehandles into it.

There's probably not much benefit from caching filehandles if you still have to read the files anyway. The best thing to do would be to port to a more mature templating system. Short of that, caching the templates in memory (just in a hash, not in a shared cache like the ones above) will give the biggest performance boost.

- Perrin

Reply via email to