From b3cdcb38a62ef54975fa570d588f65ac5d276081 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 29 Oct 2011 21:06:28 -0500 Subject: [PATCH] tweaking some comments. --- laravel/session/manager.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/laravel/session/manager.php b/laravel/session/manager.php index dfa60793..d9678dc3 100644 --- a/laravel/session/manager.php +++ b/laravel/session/manager.php @@ -274,10 +274,10 @@ public static function close() static::$transporter->put(static::$session['id'], $config); - // Some session drivers may implement the Sweeper interface, meaning the - // driver must do its garbage collection manually. Alternatively, some - // drivers such as APC and Memcached are not required to manually - // clean up their sessions. + // Some session drivers clean-up expired sessions manually; however, since + // this can be an expensive process, it is only performed once in a while. + // The probability of session garbage collection occuring for any given + // request is controlled by the "sweepage" configuration option. $sweep = (mt_rand(1, $config['sweepage'][1]) <= $config['sweepage'][0]); if ($sweep and static::$driver instanceof Drivers\Sweeper)