소스 검색

修改hit判定

oott123 11 년 전
부모
커밋
9ab9f7c7bd
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      include/controller.php

+ 2 - 1
include/controller.php

@@ -240,7 +240,7 @@ class controller{
 			$request = $purge[1];
 		}
 		$key = (NO_KEY)?$request:md5($request).'_'.strlen($request).'.'.$ext;
-		$this->hit = $key;
+		$this->hit = false;
 		$this->handle($request,$key,$delete,$direct);
 		
 	}
@@ -264,6 +264,7 @@ class controller{
 					$this->locate($url);
 				}
 				$content = $storage->read($key);
+				$this->hit = $key;
 				if(empty($content)){
 					$this->succeed = false;
 					$this->error_type = 'empty_conent';