Closed zjsy closed 5 years ago
i see /src/Http/RateLimit/Handler.php
101 } elseif ($limit > 0 || $expires > 0) {
102 $this->throttle = new Route(['limit' => $limit, 'expires' => $expires]);
103 $this->keyPrefix = sha1($request->path());
define keyPrefix ,why cache not use; i dont know,i am just a newbie
After upgrading lumen is ok
刚刚debug的时候,忽然发现又走到了/src/Http/RateLimit/Handler.php,发现竟然用上了$this->keyPrefix,好奇怪,对了一下dingo的版本竟然又是一样的
Actual Behaviour
when i request not same route, counted in total
Expected Behaviour
request not same route not counted in total
Steps to Reproduce
my route code
Within one minute frist request curl http://domain/wxapp/test1 success is ok second request curlhttp://domain/wxapp/test1 success is ok third request curlhttp://domain/wxapp/test1 faied is ok but when i frist request curl http://domain/wxapp/test1 faied no This is not the result I want
Possible Solutions
If you have any ideas on how to solve the issue, add them here, otherwise you can omit this part.