[wp-trac] [WordPress Trac] #31018: Persistent database connections with mysqli

WordPress Trac noreply at wordpress.org
Sun Nov 15 18:27:56 UTC 2015


#31018: Persistent database connections with mysqli
-------------------------------------+------------------------------
 Reporter:  blobaugh                 |       Owner:
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Database                 |     Version:  4.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------------

Comment (by lisota):

 +1 for this solution.

 WordPress needs an option to support persistent MySQL connections for
 folks that need it and know what they are doing. There are valid cases to
 use persistent connections to MySQL, and hosters out there who recommend
 its use.

 Supporting persistent connections should not require rewriting core files,
 namely wp-db.php, which are easily overwritten by core updates.

 The fix is a trivial pass-thru of the "p:" parameter. Anyone sophisticated
 enough to add that parameter to the DB_HOST does not need hand holding.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31018#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list