Skip to content
Permalink
Browse files

Fixing whitespace and adding doc comment.

  • Loading branch information...
markstory committed May 8, 2011
1 parent 66de46c commit 1cdf55f8b279b5b37e1115b9465a041f9f4a4c31
Showing with 8 additions and 2 deletions.
  1. +8 −2 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.
You can’t perform that action at this time.