in reply to Issue with dbi connect_cached method

Thank you all,

I was searching more on this issue, and found that we can use dbh->ping method and then re-connect on the basis of response.

Do you think using dbh->ping is good way to check if db connnection is active or not.

please, suggest!

Regards

  • Comment on Re: Issue with dbi connect_cached method

Replies are listed 'Best First'.
Re^2: Issue with dbi connect_cached method
by Corion (Patriarch) on Apr 27, 2022 at 07:45 UTC

    Yes, $dbh->ping is a good way to check if a connection is still live.

      Thank you for the revert.

      Regards,