Re: [htmltmpl] RFC: external caching
Brought to you by:
samtregar
From: Carl F. <ca...@fi...> - 2004-05-12 15:17:15
|
> I think I'd write that: > > use Storable qw(freeze); > $cache = freeze($t); > > HTML::Template works fine with Storable - that's how the file_cache > and shared_cache work. > > -sam > That didn't even cross my mind! I think that's exactly what I'll do. The code I had written used Storable to save the {param_map} and parse_stack} keys, but your suggestion is obviously more maintainable and works on existing installations, nice. Carl |