diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-14 11:05:46 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-03-14 13:34:34 +0100 |
commit | 69cf557d0bbebc71f18e8a0448467d624ae2ef09 (patch) | |
tree | 3f662464c1e9e4cc253138927fd92fb7a27af420 /lib/private/route | |
parent | 5c38c1c8454d10a46fcd58eab82f5732f9c431a1 (diff) | |
download | nextcloud-server-69cf557d0bbebc71f18e8a0448467d624ae2ef09.tar.gz nextcloud-server-69cf557d0bbebc71f18e8a0448467d624ae2ef09.zip |
Shorter cache key for URL entries
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 4c702bb8e04..d6270dcf2c7 100644 --- a/lib/private/route/cachingrouter.php +++ b/lib/private/route/cachingrouter.php @@ -49,7 +49,7 @@ class CachingRouter extends Router { */ public function generate($name, $parameters = array(), $absolute = false) { asort($parameters); - $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . json_encode($parameters) . intval($absolute); + $key = $this->context->getHost() . '#' . $this->context->getBaseUrl() . $name . sha1(json_encode($parameters)) . intval($absolute); if ($this->cache->hasKey($key)) { return $this->cache->get($key); } else { |