diff --git a/lib/Service/FavoritesService.php b/lib/Service/FavoritesService.php index f4cddf8dc..70931d31c 100644 --- a/lib/Service/FavoritesService.php +++ b/lib/Service/FavoritesService.php @@ -48,7 +48,7 @@ public function isFavorite(int $nodeType, int $id): bool { $result = $qb->executeQuery(); while ($row = $result->fetch()) { - $this->cache->set($cacheKey, true); + $this->cache->set(sprintf('%d_%d', $row['node_type'], $row['node_id']), true); } }