Skip to content

Commit 21c6bae

Browse files
committed
Update GeophotoService.php: clearCache
Always return success as clearing an empty cache/queue would falsely report an error. Signed-off-by: umgfoin <[email protected]>
1 parent 201f931 commit 21c6bae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Service/GeophotoService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ public function __construct(
7474
* @return bool
7575
*/
7676
public function clearCache(string $userId = ''): bool {
77-
$a = $this->photosCache->clear($userId);
78-
$b = $this->timeOrderedPointSetsCache->clear($userId);
79-
$c = $this->backgroundJobCache->clear('recentlyAdded:'.$userId);
80-
$d = $this->backgroundJobCache->clear('recentlyUpdated:'.$userId);
81-
return $a and $b and $c and $d;
77+
$this->photosCache->clear($userId);
78+
$this->timeOrderedPointSetsCache->clear($userId);
79+
$this->backgroundJobCache->clear('recentlyAdded:'.$userId);
80+
$this->backgroundJobCache->clear('recentlyUpdated:'.$userId);
81+
return true;
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)