Reuse cache result

This commit is contained in:
Lukas Reschke 2015-03-17 13:15:52 +01:00
parent 4f9b76d821
commit 1f4aa5350a
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ class URLGenerator implements IURLGenerator {
public function imagePath($app, $image) {
$cache = $this->cacheFactory->create('imagePath');
$cacheKey = $app.'-'.$image;
if($cache->hasKey($cacheKey)) {
return $cache->get($cacheKey);
if($key = $cache->get($cacheKey)) {
return $key;
}
// Read the selected theme from the config file