perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <phark...@gmail.com>
Subject Re: Disconnect database connection after idle timeout
Date Thu, 13 Nov 2014 21:35:59 GMT
On Thu, Nov 13, 2014 at 2:48 PM, Vincent Veyron <vv.lists@wanadoo.fr> wrote:

> But then, what is the point of using connect_cached?


You can use it outside of mod_perl. You can also use instead of Apache::DBI
if you don't want the connection to be more explicit (instead of magically
overriding the connect() call).

Keep in mind, neither of these work unless you call
DBI->connect()/connect_cached() at the beginning of every request. You
can't just keep a DBI handle stashed somewhere and expect that to work.

- Perrin

Mime
View raw message