Skip to content

Commit

Permalink
Cache HIBP results 1 hour instead of 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
PeeHaa committed Jan 1, 2019
1 parent f754334 commit 4b50f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rule/Security/NotPwnedPassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function request(string $password): Promise

private function buildRequest(string $password): Request
{
return (new CachingRequest(self::class, 60*60*24, $this->buildUrl($password)))
return (new CachingRequest(self::class, 60*60, $this->buildUrl($password)))
->addHeader('Accept', self::REQUEST_ACCEPT_HEADER)
;
}
Expand Down

0 comments on commit 4b50f08

Please sign in to comment.