Apache-DBI-Cache
view release on metacpan or search on metacpan
This means a handle is never really disconnected. "$dbh->{Active}" will
always return true no matter how often "disconnect" is called. Further,
you can prevent a handle from getting reused by simply not forgetting
it.
USAGE
Different to Apache::DBI Apache::DBI::Cache must be "use"ed not
"require"ed. That means it's "import" function must be called.
When used with mod_perl (versions 1.x or 2.x) this is best done in a
"startup.pl" or in a "<Perl>" section in the "httpd.conf". See mod_perl
documentation for more information.
Thereafter, "DBI->connect" is called as usual. No special treatment is
needed.
When Apache::Status or Apache2::Status is used Apache::DBI::Cache
provides an extra menu item to show statistics on handles. The loading
order of the Apache::Status and Apache::DBI::Cache is irrelevant.
lib/Apache/DBI/Cache.pod view on Meta::CPAN
This means a handle is never really disconnected. C<< $dbh->{Active} >>
will always return true no matter how often C<disconnect> is called.
Further, you can prevent a handle from getting reused by simply not
forgetting it.
=head2 USAGE
Different to Apache::DBI Apache::DBI::Cache must be C<use>ed not C<require>ed.
That means it's C<import> function must be called.
When used with mod_perl (versions 1.x or 2.x) this is best done in a
C<startup.pl> or in a C<< <Perl> >> section in the C<httpd.conf>.
See mod_perl documentation for more information.
Thereafter, C<< DBI->connect >> is called as usual. No special treatment
is needed.
When Apache::Status or Apache2::Status is used Apache::DBI::Cache provides
an extra menu item to show statistics on handles. The loading
order of the Apache::Status and Apache::DBI::Cache is irrelevant.
( run in 0.455 second using v1.01-cache-2.11-cpan-501359838a1 )