At the moment, there are a lot of connection points in MODx. Changing this would require some fairly significant hacking, and in my experience, persistent connections and PHP are pretty pointless. The connection is released when the request is completed, so there is no need for mysql_close().
Can I force modx to use mysql_pconnect?
I see something in /extenders/dbapi.mysql.class.inc.php about choosing pconnect or connect.
Or where can I add mysql_close function to terminate the mysql connection?
At the moment, there are a lot of connection points in MODx. Changing this would require some fairly significant hacking, and in my experience, persistent connections and PHP are pretty pointless. The connection is released when the request is completed, so there is no need for mysql_close().
I’m curious, what is it you are trying to achieve?