}
[$this->cacheL1Key,$this->cacheL2Key,$this->routerVars] = $this->getCacheKey();
// dd($this->cacheL1Key, $this->cacheL2Key, $this->routerVars);
$this->debug([]);
if ($cacheData = $this->getCache()) {
$this->debug($cacheData);
$response = show($this->getTpl($cacheData['tpl']), $cacheData['data']);
} else {
$response = $next($request);
$data = ['tpl' => $response->getData(), 'data' => $response->getVars()];
$this->setCache($data);
}
return $response;
}
public function getCache()
{
if (Cache::has($this->cacheL1Key)) {
$cacheData = Cache::get($this->cacheL1Key);
USER | www |
HOME | /home/www |
HTTP_CONNECTION | keep-alive |
HTTP_X_VIA | 1.1 PSmgasbIAD1ak79:1 (Cdn Cache Server V2.0), 1.1 PSrbJP1de68:9 (Cdn Cache Server V2.0), 1.1 PS-TPE-01TU5222:9 (Cdn Cache Server V2.0) |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_X_CDN_SRC_PORT | 37256 |
HTTP_X_WS_REQUEST_ID | 65faf857_PSmgasbIAD1ak79_14330-40108 |
HTTP_CDN_SRC_IP | 107.158.145.34 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
HTTP_HOST | www.likuso.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.likuso.com |
SERVER_PORT | 80 |
SERVER_ADDR | 172.16.11.93 |
REMOTE_PORT | 35594 |
REMOTE_ADDR | 210.61.180.35 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/likuso/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /apro/pro1-48742ab4e26.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//apro/pro1-48742ab4e26.html |
SCRIPT_FILENAME | /www/wwwroot/likuso/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710946392.1525 |
REQUEST_TIME | 1710946392 |