Reuse cache result

remotes/origin/etag-endpoint
Lukas Reschke 11 years ago
parent 4f9b76d821
commit 1f4aa5350a
  1. 4
      lib/private/urlgenerator.php

@ -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

Loading…
Cancel
Save