diff --git a/lib/Controller/ContactIntegrationController.php b/lib/Controller/ContactIntegrationController.php index 99b897b3c5..5fe9d5fc99 100644 --- a/lib/Controller/ContactIntegrationController.php +++ b/lib/Controller/ContactIntegrationController.php @@ -85,7 +85,7 @@ public function newContact(?string $contactName = null, ?string $mail = null): J */ #[TrapError] public function autoComplete(string $term): JSONResponse { - $cached = $this->cache->get($this->uid . $term); + $cached = $this->cache->get("{$this->uid}:$term"); if ($cached !== null) { $decoded = json_decode($cached, true); if ($decoded !== null) { @@ -93,7 +93,7 @@ public function autoComplete(string $term): JSONResponse { } } $res = $this->service->autoComplete($term); - $this->cache->set($this->uid . $term, json_encode($res), 24 * 3600); + $this->cache->set("{$this->uid}:$term", json_encode($res), 24 * 3600); return new JSONResponse($res); } }