The reset_connection_cache function doesn't seem to delete a connection if it fails to disconnect first. So for example, if the connection had the wrong credentials, it sits around in the cache forever, unless deleted via delete_session.
The simplest solution would be to delete the connection, no matter if disconnection was successful, but I'm not sure if that would cause other issues.
The
reset_connection_cache
function doesn't seem to delete a connection if it fails to disconnect first. So for example, if the connection had the wrong credentials, it sits around in the cache forever, unless deleted viadelete_session
.The simplest solution would be to delete the connection, no matter if disconnection was successful, but I'm not sure if that would cause other issues.