diff --git a/lib/Service/GeophotoService.php b/lib/Service/GeophotoService.php index 2075539f7..e6bff3440 100644 --- a/lib/Service/GeophotoService.php +++ b/lib/Service/GeophotoService.php @@ -74,11 +74,11 @@ public function __construct( * @return bool */ public function clearCache(string $userId = ''): bool { - $a = $this->photosCache->clear($userId); - $b = $this->timeOrderedPointSetsCache->clear($userId); - $c = $this->backgroundJobCache->clear('recentlyAdded:'.$userId); - $d = $this->backgroundJobCache->clear('recentlyUpdated:'.$userId); - return $a and $b and $c and $d; + $this->photosCache->clear($userId); + $this->timeOrderedPointSetsCache->clear($userId); + $this->backgroundJobCache->clear('recentlyAdded:'.$userId); + $this->backgroundJobCache->clear('recentlyUpdated:'.$userId); + return true; } /**