diff options
author | Robin Appelman <robin@icewind.nl> | 2019-10-18 18:20:25 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-10-18 18:20:25 +0200 |
commit | 219905b9c881eb72b0e6398e022e80bc6763159b (patch) | |
tree | 923818608192773a107db63bfd3db20502d64b01 /lib/private/Route | |
parent | 64f1ad9381672619c8d449ef32377b0fa0c11eff (diff) | |
download | nextcloud-server-219905b9c881eb72b0e6398e022e80bc6763159b.tar.gz nextcloud-server-219905b9c881eb72b0e6398e022e80bc6763159b.zip |
Dont cache empty url for not found routes
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Route')
-rw-r--r-- | lib/private/Route/CachingRouter.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Route/CachingRouter.php b/lib/private/Route/CachingRouter.php index cb1b98d77e6..a37bbf5b701 100644 --- a/lib/private/Route/CachingRouter.php +++ b/lib/private/Route/CachingRouter.php @@ -58,7 +58,9 @@ class CachingRouter extends Router { return $cachedKey; } else { $url = parent::generate($name, $parameters, $absolute); - $this->cache->set($key, $url, 3600); + if ($url) { + $this->cache->set($key, $url, 3600); + } return $url; } } |