mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -04:00
Merge pull request #23221 from owncloud/backport-23214-url-cache-key-length
[9.0] Shorter cache key for URL entries
This commit is contained in:
commit
f79195853e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue