mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing whitespace and adding doc comment.
This commit is contained in:
parent
66de46cd5b
commit
1cdf55f8b2
1 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue