Re: Disconnect database connection after idle timeout
Perrin Harkins <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CAC0_be0muvb=TPUTsjsjtqxVOy-rarUNedp8xBES4VKKV8FGAQ@mail.gmail.com> |
On Thu, Nov 13, 2014 at 2:48 PM, Vincent Veyron <[email protected]> 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