/** * Method called on close of a database session. * * @return boolean Success * @access private */ function __close() { $probability = mt_rand(1, 150); if ($probability <= 3) { switch (Configure::read('Session.save')) { case 'cache': Cache::gc(); break; default: CakeSession::__gc(); break; } } return true; }
/** * Method called on close of a database session. * * @return boolean Success * @access private */ function __close() { $probability = mt_rand(1, 150); if ($probability <= 3) { CakeSession::__gc(); } return true; }