mirror of
https://github.com/nextcloud/server.git
synced 2026-03-22 10:30:49 -04:00
Reuse cache result
This commit is contained in:
parent
4f9b76d821
commit
1f4aa5350a
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue