Skip to content
Snippets Groups Projects
Unverified Commit 219905b9 authored by Robin Appelman's avatar Robin Appelman
Browse files

Dont cache empty url for not found routes


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 64f1ad93
No related branches found
No related tags found
Loading
......@@ -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;
}
}
......
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