Created
November 5, 2012 20:14
-
-
Save ptrin/4020077 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* finish(): close database connections, etc. | |
* | |
*/ | |
public static function finish() { | |
// NOTE: DO 27 Aug 2012: We DON'T want to explictly close the database here, because | |
// Zend's session save code still needs to write out the session data. If we closed it | |
// Zend would simply open another connection, doubling the load on our database server. | |
// Instead we let PHP auto-close when we're done. | |
// $GLOBALS['db']->closeConnection(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment