add delimiter between host and baseurl

This commit is contained in:
Robin Appelman 2014-04-07 13:27:18 +02:00
parent 84285011ce
commit 51fbf0bcbc
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class CachingRouter extends Router {
* @return string * @return string
*/ */
public function generate($name, $parameters = array(), $absolute = false) { public function generate($name, $parameters = array(), $absolute = false) {
$key = $this->context->getHost() . $this->context->getBaseUrl() . $name . json_encode($parameters) . $absolute; $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . json_encode($parameters) . $absolute;
if ($this->cache->hasKey($key)) { if ($this->cache->hasKey($key)) {
return $this->cache->get($key); return $this->cache->get($key);
} else { } else {