Usually Flickr has different sizes of the image, and you can access them all. Unless you don’t want a totally different size, you can use the resized images from Flickr and don’t bother with extra work. I think a medium or large size is ok for most people.
For the cache feature, I would also download the images to the database/filesystem and save a lot more traffic not just image information. Probably this is what you ment with cache, but most classes and galleries still load the images from flickr. Check when you saved it against the date of last change on flickr, if it’s different then you’ll download the pic again, else load it from your server.
I’ve done something for me, but it’s a mess so I haven’t released it. Something in style of
PixelPost using
phpFlickr.
If you want, I could also take a look at your code, maybe help you if in need.
Boby