Strange PHP issue

J03

~~~~~~~~
Messages
5,558
Location
Wales
I'm using an API to get pictures of bands/dj's/artists etc. I'm caching the results to a database, so that there is only ever one API call per artist. The API returns a URL to the image. If I run the script on an un-cached image, then in the web browser the image does not load - but if I view the HTML source code, the URL to the image is valid. On subsequent loads, the image shows up fine.... (when it's being read from the cache). Can you think of any reason for this?

Could it be the 1ish second that it takes to query the API and then cache the result?
 
Back
Top Bottom