Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I don't want to cache some handles to a particular database in a script that uses Apache::DBI for other connections. Is it possible to force a disconnect on certain handles?

Will something like $dbh->SUPER::disconnect do it?

Replies are listed 'Best First'.
Re: Making some handles non-persistent when using Apache::DBI
by perrin (Chancellor) on May 14, 2003 at 15:52 UTC
    A method for doing this is described here and in the mod_perl Developer's Cookbook published by Sams.
Re: Making some handles non-persistent when using Apache::DBI
by PodMaster (Abbot) on May 14, 2003 at 15:23 UTC
    That ought to do it, but you have to remember to cleanout Apache::DBI's internal cache.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
    ** The Third rule of perl club is a statement of fact: pod is sexy.