Posted: Tue Feb 26, 2008 9:20 pm Post subject: photo module bug -- caching exif date
There's a caching bug in the photo module. The exif date is needed for the QueryContainer, but not retrieved and cached until send_file.
This results in the "Taken:" field on the Photo page showing as "unknown" unless you force resending of the Container by scrolling up or down on the Photos page or exiting and re-entering the Photos page.
I could rewrite it so that the dates are available at QueryContainer time, but I doubt that it would be worthwhile. I'll think about it...
Edit: I'm still not liking it. Basically, I'd have to load each uncached image on a new page (four to twelve) just to get the date, and then throw them away, loading them again when it was time to generate the thumbnails -- because there's no way to tell what size the icon should be until it's requested. Which also means a separate cache just for the dates. Or else I'd have to cache the full 4-12 images until the icons were generated (i.e., quite a lot of memory) -- currently only one full image is ever loaded at a time (which can still be several megs). _________________ My pyTivo fork . My page
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum