On Friday 09 March 2007 12:51, Dave Rolsky wrote: > On Fri, 9 Mar 2007, Andy Grundman wrote: > > We've been discussing this a bit in #catalyst-dev. I think Memoize would > > work, but it needs to be done carefully so it works with all our > > different varieties of calling uri_for, and also with multiple Catalyst > > apps running under the same mod_perl instance, for example. > > It might be safer and simpler to not use Memoize, and store the > memoizations in the Catalyst object passed into the method. That'd avoid > the multi-app problem. Another potential problem using Memoize is that you > could have more or less unlimited memory bloat over time. By storing this > in the object, you ensure that the cache is cleaned regularly.
Memoize on CPAN does LRU cache expiration. If we do decide to cache, we can
easily steal the relevant code :)
Regards,
Jonathan Rockway
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
pgp2NkLTkcmPF.pgp
Description: PGP signature
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
