smartchicago / connect-chicago-locator

Search for and view information about places where you can use a computer for free in Chicago. Part of the Connect Chicago website.
locations.weconnectchicago.org
12 stars 13 forks source link

Tagged images not showing up on location page #27

Open danxoneil opened 11 years ago

danxoneil commented 11 years ago

Example:

This image: http://www.flickr.com/photos/97286480@N07/9128544556/

has this tag: pcc-rogers-park-191

which should make the picture show up here: http://locations.weconnectchicago.org/location/rogers-park-library-6907-n-clark-street

but it is not.

cgansen commented 11 years ago

Can you check the permissions on that photo? Here is what I see (access forbidden error) when I try to load it:

danxoneil commented 11 years ago

Whoops fixed try again, @cgansen

cgansen commented 11 years ago

It's definitely broken, but that's a bad example since there's nothing on Flickr tagged with "pcc-rogers-park-191"

Here's a set of photos: http://www.flickr.com/photos/97286480@N07/tags/pcccanaryville38/ that definitely should show up on http://locations.weconnectchicago.org/location/canaryville-library-642-w-43rd-street, but no images show.

Flickr:

Location page:

cgansen commented 11 years ago

After a bit more investigation, this appears to be a caching issue. Changing an attribute of the location and saving it will bust the page cache, and force a refresh of the data, including the list of Flickr photos.

danxoneil commented 11 years ago

"Changing an attribute of the location and saving it" means "updating the location page", ya? If so, we will note that for the canvassers. Plz close & comment if this is the case, sir.

cgansen commented 11 years ago

Yes. Sort of fixing the code, a valid work around is to:

1) Upload and tag all photos on Flickr 2) Make edits to the location 3) Save location, reload page

That should bust the cache and force the images to be refetched from Flickr.