New DB_TIMEOUT Constant in wp-config.php to be used in wp-db.php
|Reported by:||sc0ttkclark||Owned by:|
This is really just highlighting a fix that I found useful:
I believe by making this a core thing, by just hooking in with DB_TIMEOUT, this can help people tweak their configurations more easily.
Code could be:
if ( define( 'DB_TIMEOUT' ) AND DB_TIMEOUT > 0 )
$this->query("SET SESSION wait_timeout=" . DB_TIMEOUT);