Fixing whitespace and adding doc comment.

This commit is contained in:
mark_story 2011-05-08 08:47:32 -04:00
parent 66de46cd5b
commit 1cdf55f8b2

View file

@ -549,10 +549,16 @@ class Cache {
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();
}
}
}