Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing whitespace and adding doc comment.

  • Loading branch information...
commit 1cdf55f8b279b5b37e1115b9465a041f9f4a4c31 1 parent 66de46c
Mark Story markstory authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 cake/libs/cache.php
10 cake/libs/cache.php
View
@@ -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();
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.