diff options
author | Derek Jones <derek.jones@ellislab.com> | 2009-02-27 17:29:59 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2009-02-27 17:29:59 +0100 |
commit | 87cbafce2d6803af78714baf8bba64309c01fc33 (patch) | |
tree | ebc4797260b74b4959ac07cabaa97ba4236c3e2f /user_guide | |
parent | af4fb22745413cac182064a495da83318a41fde9 (diff) |
added reconnect() method to db drivers
Diffstat (limited to 'user_guide')
-rw-r--r-- | user_guide/changelog.html | 1 | ||||
-rw-r--r-- | user_guide/database/connecting.html | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index cdbfbbd04..3ddaf8d08 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -74,6 +74,7 @@ SVN Revision: </p> <li>Updated all database drivers to handle arrays in escape_str()</li> <li>Added escape_like_str() method for escaping strings to be used in LIKE conditions</li> <li>Updated Active Record to utilize the new LIKE escaping mechanism.</li> + <li>Added reconnect() method to DB drivers to try to keep alive / reestablish a connection after a long idle.</li> </ul> </li> diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html index 3579e1af6..b4d517941 100644 --- a/user_guide/database/connecting.html +++ b/user_guide/database/connecting.html @@ -158,6 +158,11 @@ you can pass the connection values as indicated above).</p> </div> +<h2>Reconnecting / Keeping the Connection Alive</h2> + +<p>If the database server's idle timeout is exceeded while you're doing some heavy PHP lifting (processing an image, for instance), you should consider pinging the server by using the <dfn>reconnect()</dfn> method before sending further queries, which can gracefully keep the connection alive or re-establish it.</p> + +<code>$this->db->reconnect();</code> |