* @access public* @return void*/public function gc(): void{$lifetime = $this->config['expire'];$now = time();$files = $this->findFiles($this->config['path'], function (SplFileInfo $item) use ($lifetime, $now) {return $now - $lifetime > $item->getMTime();});foreach ($files as $file) {$this->unlink($file->getPathname());}}/*** 查找文件
| s | /product/info.html |
| id | 294 |
| USER | www |
| HOME | /home/www |
| HTTP_ACCEPT | */* |
| HTTP_USER_AGENT | Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html) |
| HTTP_HOST | hxystny.com |
| PATH_INFO | |
| REDIRECT_STATUS | 200 |
| SERVER_NAME | hxystny.com |
| SERVER_PORT | 443 |
| SERVER_ADDR | 172.17.250.116 |
| REMOTE_PORT | 59342 |
| REMOTE_ADDR | 45.197.36.61 |
| SERVER_SOFTWARE | nginx/1.22.0 |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTPS | on |
| REQUEST_SCHEME | https |
| SERVER_PROTOCOL | HTTP/1.1 |
| DOCUMENT_ROOT | /www/wwwroot/hxystny.com/public_html/public |
| DOCUMENT_URI | /index.php |
| REQUEST_URI | /product/info.html?id=294 |
| SCRIPT_NAME | /index.php |
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET |
| QUERY_STRING | s=/product/info.html&id=294 |
| SCRIPT_FILENAME | /www/wwwroot/hxystny.com/public_html/public/index.php |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /index.php |
| REQUEST_TIME_FLOAT | 1780608841.5707 |
| REQUEST_TIME | 1780608841 |