diff --git a/src/Services/InfoProviderSystem/PartInfoRetriever.php b/src/Services/InfoProviderSystem/PartInfoRetriever.php index b6632087..1a31b197 100644 --- a/src/Services/InfoProviderSystem/PartInfoRetriever.php +++ b/src/Services/InfoProviderSystem/PartInfoRetriever.php @@ -74,10 +74,7 @@ final class PartInfoRetriever protected function searchInProvider(InfoProviderInterface $provider, string $keyword): array { //Generate key and escape reserved characters from the provider id - $escaped_keyword = urlencode($keyword) . uniqid(); - - dump("Remove the uniqid() from the escaped_part_id variable to use the cache"); - + $escaped_keyword = urlencode($keyword); return $this->partInfoCache->get("search_{$provider->getProviderKey()}_{$escaped_keyword}", function (ItemInterface $item) use ($provider, $keyword) { //Set the expiration time $item->expiresAfter(self::CACHE_RESULT_EXPIRATION); @@ -98,10 +95,7 @@ final class PartInfoRetriever $provider = $this->provider_registry->getProviderByKey($provider_key); //Generate key and escape reserved characters from the provider id - $escaped_part_id = urlencode($part_id) .uniqid(); - - dump("Remove the uniqid() from the escaped_part_id variable to use the cache"); - + $escaped_part_id = urlencode($part_id); return $this->partInfoCache->get("details_{$provider_key}_{$escaped_part_id}", function (ItemInterface $item) use ($provider, $part_id) { //Set the expiration time $item->expiresAfter(self::CACHE_DETAIL_EXPIRATION);