From 1cdf55f8b279b5b37e1115b9465a041f9f4a4c31 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 8 May 2011 08:47:32 -0400 Subject: [PATCH] Fixing whitespace and adding doc comment. --- cake/libs/cache.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cake/libs/cache.php b/cake/libs/cache.php index 5bdb3d7a0..4616a46d2 100644 --- a/cake/libs/cache.php +++ b/cake/libs/cache.php @@ -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(); + } } }