Permalink
Browse files

Fixing whitespace and adding doc comment.

  • Loading branch information...
1 parent 66de46c commit 1cdf55f8b279b5b37e1115b9465a041f9f4a4c31 @markstory markstory committed May 8, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 cake/libs/cache.php
View
10 cake/libs/cache.php
@@ -549,10 +549,16 @@ function settings($name = null) {
return array();
}
+/**
+ * Write the session when session data is persisted with cache.
+ *
+ * @return void
+ * @access public
+ */
function __destruct() {
if (Configure::read('Session.save') == 'cache' && function_exists('session_write_close')) {
- session_write_close();
- }
+ session_write_close();
+ }
}
}

0 comments on commit 1cdf55f

Please sign in to comment.