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

WordPress Trac noreply at wordpress.org
Thu Jan 15 06:09:13 UTC 2015


#31018: Persistent database connections with mysqli
-------------------------------------+----------------------
 Reporter:  blobaugh                 |       Owner:
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Database                 |     Version:  trunk
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+----------------------
Changes (by pento):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Thanks for the feature request, Ben!

 While persistent connections can be useful under some limited
 circumstances, I don't think this is appropriate for core, for a couple of
 reasons:

 * We ''really'' don't want to add new `wp-config.php` settings, especially
 for something as edge case as this.
 * Persistent connections sound like a really good idea, but have bunch of
 gotchas that most users won't be aware of, or know how to mitigate. We
 don't want to encourage users to do things that will break their site, and
 persistent connections will do that in fairly obscure ways.

 For situations like this, I'd recommend creating a DB drop-in that
 replaces `wpdb::db_connect()` with a persistent version.

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


More information about the wp-trac mailing list