I have a mod_perl app that uses Rose::DB (postgresql driver). DB connections are persistent among requests (using DBI->connect_cached) and it is working fine.
I'm collecting DB profile data (and printing it to output in development environment), but I want to clear the profiling data after each request, using this line:
# $db is a Rose::DB object
$db->dbh->{Profile}->{Data} = undef;
as stated in DBI::Profile documentation. But I can still see previous profiling results on new requests.
Environment is Debian Squeeze, Perl 5.10.1, Apache 2.2.16, DBI 1.612 and DBI::Profile 2.014123.
What am I missing here, is there any special thing to notice under mod_perl for DBI::Profile?
Thanks in advance for any advice/hint.