perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <per...@elem.com>
Subject Re: ModPerl::RegistryLoader
Date Tue, 26 Jul 2011 14:08:34 GMT
2011/7/26 Jiří Pavlovský <jira@getnet.cz>:
> 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

Mime
View raw message