}
[$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 PSmgasbIAD1pb76:9 (Cdn Cache Server V2.0), 1.1 PSrbJP1jg79:6 (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 | 37222 |
HTTP_X_WS_REQUEST_ID | 65faf856_PSmgasbIAD1ak79_13424-35488 |
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 | 62238 |
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-2be0510a8da.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//apro/pro1-2be0510a8da.html |
SCRIPT_FILENAME | /www/wwwroot/likuso/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710946390.6145 |
REQUEST_TIME | 1710946390 |