ngokevin / sriracha

Image albums and gallery with local filesystem, imgur, and flickr support.
http://sriracha.ngokevin.com
0 stars 3 forks source link

Cache image URLs by album in a flat file so wok doesn't hit the APIs every refresh #11

Open ngokevin opened 10 years ago

ngokevin commented 10 years ago

Flickr's API is damn slow, takes so long to deploy a wok site with Flickr albums. Let's cache.

Something like:

    'albums': ['flickralbum1sadkasdaa', 'imguralbumdakfwef', 'flickralbum2lkfa'],
    'flickralbum1': ['img.jpg', 'img2.jpg']
    'flickralbum2': ['img.jpg', 'img3'.jpg']

When you want to bust the cache, you would open up the json file and delete an album from albums, and Sriracha should update the album.

ngokevin commented 10 years ago

done baby