Keep cached urls with different hostnames or baseurls seperate

remotes/origin/ldap_group_count
Robin Appelman 12 years ago
parent 65e3f63400
commit 9c8596e95b
  1. 2
      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 {

Loading…
Cancel
Save