arrrlo / Google-Images-Search

[PYTHON] Search for image using Google Custom Search API and resize & crop afterwards
MIT License
176 stars 34 forks source link

cache_discovery=False intermittently still returns cache images #166

Open jonnyhoff opened 1 year ago

jonnyhoff commented 1 year ago

cache_discovery=False intermittently still returns cache images even though it's set to false.

9t8 commented 1 month ago

Does cache_discovery cache images? It looks like it caches the discovery doc which currently may or may not cause Google's Python client library to do anything.

arrrlo commented 1 month ago

Cache discovery has nothing to do with image caching. Discovery is Google's service for getting more information on what API's are needed to use with the library. If you disable cache_discovery (cache_discovery=False), every API request for images search will last longer because lib will not use cached api definitions, but will query api definitions first (using Google's Discovery API)...