Subject: | possible issue in persistent environments. |
There may be a bug with this plugin when using in persistent
environments such as modperl. The issue is with this line:
my %tmpl_params = (c=>$self);
It creates a circular reference, which can cause the CGI::App object to
not go out of scope at the expected time. This may in turn cause
failures elsewhere in the code, such as with CGI::Session, which depends
on the flush() method running when DESTROY is called as the object goes
out of scope.
The workaround is to not use the "c." notation in the template, and
change the line to read:
my %tmpl_params;
Alternatives are being considered. Comments welcome.