Skip to content

Commit c1f0eac

Browse files
committed
#183: Fix getQueryString to getRequestUri because of fragile web-servers settings that affects key hash generation
1 parent 26fb73e commit c1f0eac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Extension/CacheTrait.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ private function recompute(SqlOptions $sqlOptions, string $hashKey, int $ttl)
139139
*/
140140
private function getKeyHash(Request $request) : string
141141
{
142-
$qStr = $request->getQueryString();
143-
144-
return $this->configOptions->getCalledMethod() . PhpInterface::COLON . md5($qStr);
142+
return $this->configOptions->getCalledMethod() . PhpInterface::COLON . md5($request->getRequestUri());
145143
}
146144

147145
/**

0 commit comments

Comments
 (0)