1 May
2015
1 May
'15
10:26 a.m.
Hello all, First, thank you for this awesome work! I have a Dancer application that uses Apache + Plack::Handler to run it. Currently, inside each Dancer route I'm forced to create the master object of the application (i.e $object=Myapp->new(-login=>$login)) that it's a huge structure, including the database handler. So: /route1 => creates the $object, reconnects to the database /route2 => creates the $object, reconnects to the database Yep, doesn't make sense... Is there a way to make the $object persistent (and the database connection with it)? Is this related to how the application is running (CGI)? Thank you! Peco