Skip to content

Commit 447f023

Browse files
committed
#183: Fix getRequestUri+getQueryString
1 parent c1f0eac commit 447f023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Extension/CacheTrait.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ private function recompute(SqlOptions $sqlOptions, string $hashKey, int $ttl)
139139
*/
140140
private function getKeyHash(Request $request) : string
141141
{
142-
return $this->configOptions->getCalledMethod() . PhpInterface::COLON . md5($request->getRequestUri());
142+
$qStr = $request->getQueryString() ?? '';
143+
return $this->configOptions->getCalledMethod() . PhpInterface::COLON . md5($request->getRequestUri() . $qStr);
143144
}
144145

145146
/**

0 commit comments

Comments
 (0)