[Catalyst] Context sensitive template locations
Carl Franks
fireartist at gmail.com
Fri Nov 25 17:19:20 CET 2005
On 25/11/05, Zbigniew Lukasiak <zzbbyy at gmail.com> wrote:
> > > sub unshift_paths {
> > > my($self, @paths) = @_;
> > > unshift(@{$self->include_path}, @paths);
> > > }
> >
> > Don't you want to rebuilt the path each time? That looks like a
> > small memory leak
>
> Hmm. The question is where to add the cleaning code. Perhaps to the
> process method? How would this work with subrequests? I cannot see
> other situations when process would be called multiple times in one
> request.
Does My::App::View::TT::new() get called once on process startup, or
once per request?
I think that's the memory leak Bill was suggesting - if $self persists
over multiple requests in a persistant environment.
Carl
More information about the Catalyst
mailing list