public function gc($expires = null)
 {
     return Cache::gc($this->cacheKey) && parent::gc($expires);
 }
Exemple #2
0
 /**
  * Helper function called on gc for cache sessions.
  *
  * @param string $maxlifetime Sessions that have not updated for the last maxlifetime seconds will be removed.
  * @return bool True on success, false on failure.
  */
 public function gc($maxlifetime)
 {
     return Cache::gc($this->_options['config'], time() - $maxlifetime);
 }
 /**
  * Helper function called on gc for cache sessions.
  *
  * @param string $maxlifetime Sessions that have not updated for the last maxlifetime seconds will be removed.
  * @return bool True on success, false on failure.
  */
 public function gc($maxlifetime)
 {
     return Cache::gc(Configure::read('Session.handler.config'), time() - $maxlifetime);
 }