Merge pull request #17594 from nextcloud/dont-cache-notfound
Dont cache empty url for not found routes
This commit is contained in:
commit
8d094920c3
|
@ -58,7 +58,9 @@ class CachingRouter extends Router {
|
|||
return $cachedKey;
|
||||
} else {
|
||||
$url = parent::generate($name, $parameters, $absolute);
|
||||
if ($url) {
|
||||
$this->cache->set($key, $url, 3600);
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue