WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding mysql_close($wpdb->dbh) - would there be any point to this? (2 posts)

  1. Trahald
    Member
    Posted 6 years ago #

    I have a high server load due to WordPress sites. Would there be any point to hacking index.php and adding to the end:
    mysql_close($wpdb->dbh);

    Or is the connection already closed by WordPress somewhere, and this is not needed?

  2. Michael Torbert
    WordPress Virtuoso
    Posted 6 years ago #

    No, WordPress uses a non-persistent connection to MySQL, which is closed automatically.

Topic Closed

This topic has been closed to new replies.

About this Topic