Skip to content
Snippets Groups Projects
Unverified Commit 8d094920 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #17594 from nextcloud/dont-cache-notfound

Dont cache empty url for not found routes
parents a7193ce7 219905b9
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,9 @@ class CachingRouter extends Router { ...@@ -58,7 +58,9 @@ class CachingRouter extends Router {
return $cachedKey; return $cachedKey;
} else { } else {
$url = parent::generate($name, $parameters, $absolute); $url = parent::generate($name, $parameters, $absolute);
$this->cache->set($key, $url, 3600); if ($url) {
$this->cache->set($key, $url, 3600);
}
return $url; return $url;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment