protected function gcCycle() {
		$pattern = $this->getCachePath() . DIRECTORY_SEPARATOR . $this->prefix . '_*';
		$list    = glob($pattern);
		
		if ($list === false) {
			trigger_error('Garbage collection failure');
			return;
		}
		
		if (empty($list)) {
			return;
		}
		
		$current = time();
		
		foreach ($list as $path) {
			$expire = (int) file_get_contents($path, false, null, -1, 10);
			
			if ($expire === 0) {
				continue;
			}
			
			if ($current >= $expire) {
				unlink($path);
			}
		}
	}
protected function gcCycle() {
		$pattern = $this->getCachePath() . DIRECTORY_SEPARATOR . $this->prefix . '_*';
		$list    = glob($pattern);
		
		if ($list === false) {
			trigger_error('Garbage collection failure');
			return;
		}
		
		if (empty($list)) {
			return;
		}
		
		$current = time();
		
		foreach ($list as $path) {
			$expire = (int) file_get_contents($path, false, null, -1, 10);
			
			if ($expire === 0) {
				continue;
			}
			
			if ($current >= $expire) {
				unlink($path);
			}
		}
	}
protected function gcCycle ( ) { $ pattern = $ this -> getCachePath ( ) . DIRECTORY_SEPARATOR . $ this -> prefix . '_*' ; $ list = glob ( $ pattern ) ; if ( $ list === false ) { trigger_error ( 'Garbage collection failure' ) ; return ; } if ( empty ( $ list ) ) { return ; } $ current = time ( ) ; foreach ( $ list as $ path ) { $ expire = ( int ) file_get_contents ( $ path , false , null , - 1 , 10 ) ; if ( $ expire === 0 ) { continue ; } if ( $ current >= $ expire ) { unlink ( $ path ) ; } } }
Run the garbage collection cycle
Run the garbage collection cycle