Make WordPress Core

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's profile 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:

http://thesocialmediaguide.com.au/2010/07/31/solution-for-wordpress-database-error-mysql-server-has-gone-away-for-query/

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)

#1 @scribu
14 years ago

  • Type changed from feature request to enhancement

#2 @nacin
14 years ago

  • Keywords close added

I don't like this as a constant. Regardless, better done in the context of #5932.

#3 @scribu
14 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.