We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9630d4c + 15dd908 commit d46ee41Copy full SHA for d46ee41
src/Routing/Matcher/CacheUrlMatcher.php
@@ -30,7 +30,10 @@ class CacheUrlMatcher extends UrlMatcher
30
*/
31
public function match($pathInfo)
32
{
33
- $key = 'route_' . strtolower($this->context->getMethod()) . '_' . $pathInfo;
+ $host = strtr($this->context->getHost(), '.', '_');
34
+ $method = strtolower($this->context->getMethod());
35
+ $key = 'route_' . $method . '_' . $host . '_' . $pathInfo;
36
+
37
if ($this->cache->contains($key)) {
38
return $this->cache->fetch($key);
39
}
0 commit comments