mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-14 15:09:31 +00:00
Added very basic octopart info provider
This commit is contained in:
parent
6a00b8e168
commit
43cc37d10f
6 changed files with 260 additions and 2 deletions
|
|
@ -74,7 +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);
|
||||
$escaped_keyword = urlencode($keyword) . uniqid();
|
||||
|
||||
return $this->partInfoCache->get("search_{$provider->getProviderKey()}_{$escaped_keyword}", function (ItemInterface $item) use ($provider, $keyword) {
|
||||
//Set the expiration time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue