[Dancer-users] app does not reconnect to database after a while
wanradt at gmail.com
Tue Jun 12 22:12:33 CEST 2012
2012/6/11 WK <wanradt at gmail.com>:
> 2012/6/11 David Precious <davidp at preshweb.co.uk>:
>> Holding on to a database handle between requests as you're doing by
>> storing it in $dbh and reusing it prevents the plugin from doing its
>> job for you.
> Sounds logical, thank you!
Still i have other problem more here: i have $my_tools object, which
should also have db handle. But this handle gets old too and needs to
reconnect. How is best way to implement it, if i don't want to create
new object on every request?
More information about the Dancer-users