summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-03-14 15:03:25 +0100
committerVincent Petry <pvince81@owncloud.com>2016-03-14 15:03:25 +0100
commit2934b7e694a40fb2d172468a610eb736c042776e (patch)
tree05116294c26753fca188a1c43e4ac44a4e5c042c
parente0998c27ff205566db7799dce177192d2b776bc1 (diff)
parentc3c491689b2243b88fe88f4ffb1f8274575d2029 (diff)
downloadnextcloud-server-2934b7e694a40fb2d172468a610eb736c042776e.tar.gz
nextcloud-server-2934b7e694a40fb2d172468a610eb736c042776e.zip
Merge pull request #23214 from owncloud/issue-23076-max-key-for-memcache-urls
Shorter cache key for URL entries
-rw-r--r--lib/private/route/cachingrouter.php2
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 {