[cgiapp] need a fresh WebApp instance with every request ?
Matthias Ferdinand
mf+cgiapp at mfedv.net
Fri Dec 2 09:12:42 EST 2011
that's what you get from coding straight into your mailer...
On Fri, Dec 02, 2011 at 03:08:10PM +0100, Matthias Ferdinand wrote:
> # in C:A:Capsule
> sub cgiapp_postrun {
> my $self = shift;
> my $app = $self->{_APP_OBJECT};
>
> # invoke MyApp teardown
> return $app->cgiapp_postrun($self)
> if ($app->can("cgiapp_postrun"));
> }
should be more like
# in C:A:Capsule
sub cgiapp_postrun {
my ($self) = @_;
my $app = $self->{_APP_OBJECT};
# invoke MyApp teardown
return $app->cgiapp_postrun(@_)
if ($app->can("cgiapp_postrun"));
}
Regards
Matthias
More information about the cgiapp
mailing list