pawsnewengland / petfinder-api-for-wordpress

[DEPRECATED] Petfinder for WordPress is a set of functions that makes it easy to import and work with data from Petfinder.
2 stars 0 forks source link

Main images not updating with petfinder #2

Open madisonneal opened 9 years ago

madisonneal commented 9 years ago

Hello! I am using your petfinder plugin for this website: dollyslegacyanimalrescue.org and it is working nicely. The one issue I am running into is that the main images aren't updating when changed on petfinder. What could be causing this? Is there a way to tell it to pull the image they selected to be the primary?

Snapshot from the website: image

Actual: image image image

cferdinandi commented 9 years ago

We're struggling with the same issue at PAWS New England. I have a few theories as to why this is happening:

  1. The Petfinder API is, frankly, outdated, and the data they send over may not accurately reflect the most recent data.
  2. More likely: The browser is cacheing image files (which is really good for performance). Petfinder names images you upload based on position (1, 2, 3, etc.). When you update an image, the new image has the same name as the old one, so the browser will not download the new image because it believes it is the same file. There's no way around this.

To test, try browsing in incognito mode in Chrome and see if the new images start showing up.