#34903 closed feature request (fixed)
wpdb needs a close function
Reported by: | fabifott | Owned by: | pento |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Database | Keywords: | |
Focuses: | performance | Cc: |
Description
For a complete abstraction of the database access, the wpdb class needs a close() function.
A sample situation is a file-serving script, that runs for a long time reading a big file and pumping the bytes to the browser. Here a database connection is an unneeded resource and should be closed as soon as the IO pump starts.
Attachments (1)
Change History (10)
Note: See
TracTickets for help on using
tickets.
Would you accept a pull request?
Or at least make wpdb::$dbh somehow accessible. Its not good practice to hide the DB layer completly in an non-complete abstraction.