diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-01 15:43:27 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-04-01 15:43:27 +0200 |
commit | 9c8596e95b81f9d5ddcd7132ac0134b0ffed67e5 (patch) | |
tree | 4c930f31108cb42107758f78ee314da89915c527 /lib/private/route | |
parent | 65e3f634000a2142f412b85d0443f241bb64a9ab (diff) | |
download | nextcloud-server-9c8596e95b81f9d5ddcd7132ac0134b0ffed67e5.tar.gz nextcloud-server-9c8596e95b81f9d5ddcd7132ac0134b0ffed67e5.zip |
Keep cached urls with different hostnames or baseurls seperate
Diffstat (limited to 'lib/private/route')
-rw-r--r-- | lib/private/route/cachingrouter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/route/cachingrouter.php b/lib/private/route/cachingrouter.php index ad25372391f..63bfd3e0539 100644 --- a/lib/private/route/cachingrouter.php +++ b/lib/private/route/cachingrouter.php @@ -31,7 +31,7 @@ class CachingRouter extends Router { * @return string */ public function generate($name, $parameters = array(), $absolute = false) { - $key = $name . json_encode($parameters) . $absolute; + $key = $this->context->getHost() . $this->context->getBaseUrl() . $name . json_encode($parameters) . $absolute; if ($this->cache->hasKey($key)) { return $this->cache->get($key); } else { |