Opened 14 years ago
Closed 14 years ago
#15298 closed enhancement (duplicate)
New DB_TIMEOUT Constant in wp-config.php to be used in wp-db.php
Reported by: | sc0ttkclark | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 3.1 |
Component: | Database | Keywords: | close |
Focuses: | Cc: |
Description
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);
Change History (3)
Note: See
TracTickets for help on using
tickets.
I don't like this as a constant. Regardless, better done in the context of #5932.