From 21c6bae1bfe7fcf699412b7eee6253b00df3ebf1 Mon Sep 17 00:00:00 2001 From: umgfoin Date: Wed, 8 Jan 2025 14:50:36 +0100 Subject: [PATCH] Update GeophotoService.php: clearCache Always return success as clearing an empty cache/queue would falsely report an error. Signed-off-by: umgfoin --- lib/Service/GeophotoService.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } /**