Skip to content

Commit

Permalink
#183: Fix getRequestUri+getQueryString
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Oct 10, 2019
1 parent c1f0eac commit 447f023
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extension/CacheTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ private function recompute(SqlOptions $sqlOptions, string $hashKey, int $ttl)
*/
private function getKeyHash(Request $request) : string
{
return $this->configOptions->getCalledMethod() . PhpInterface::COLON . md5($request->getRequestUri());
$qStr = $request->getQueryString() ?? '';
return $this->configOptions->getCalledMethod() . PhpInterface::COLON . md5($request->getRequestUri() . $qStr);
}

/**
Expand Down

0 comments on commit 447f023

Please sign in to comment.