Re: ModPerl::RegistryLoader
Perrin Harkins <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <CAC0_be3J8uuoJ2Tw9VRr4HCKxMFSuhpksA3aiJDny4-mxUryow@mail.gmail.com> |
2011/7/26 Jiří Pavlovský <[email protected]>: > That is probably it, I store db handle in a singleton. > That, unfortunately is something I cannot change easily Apache::DBI should make this unnecessary. You could change your singleton code to DBI->connect every time and it would just pull the cached handle from Apache::DBI. Alternatively, you can try adjusting your code so that it just avoids doing the DBI caching during startup. Look at the Apache::DBI code for an example of how to tell if you're in startup. - Perrin