浏览代码

counter bug that gave me a heart attack

lolcat 2 年之前
父节点
当前提交
7e893a15c1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/backend.php

+ 1 - 1
lib/backend.php

@@ -4,7 +4,6 @@ class backend{
 	public function __construct($scraper){
 		
 		$this->scraper = $scraper;
-		$this->requestid = apcu_inc("real_requests");
 	}
 	
 	/*
@@ -12,6 +11,7 @@ class backend{
 	*/
 	public function get_ip(){
 		
+		$this->requestid = apcu_inc("real_requests");
 		$pool = constant("config::PROXY_" . strtoupper($this->scraper));
 		if($pool === false){