aymericb/exposition

Cache issues?

Opened this issue · 4 comments

I rotated some of the photos in my album and loaded update.html to refresh the cache. The photos are still unrotated. I even cleared the cache manually - no go. I suppose the rotated image is cached internally inside the image, so exposition doesn't see it? When I open the image with Preview and do a Save As... the new image is seen correctly (rotated) in exposition.

So I guess it's just something the user has to know about.

I think this is probably the browser cache. I set an expiration of 1hr in PHOTO_CACHE_DURATION inside config.php. Try to clear the cache of the browser, use a different browse, come back after one hour, etc...

No, loading the site in a different browser - Chrome rather than Firefox - still shows un-rotated pictures.

Not sure what's going on here. I use filemtime to compare the modification date of the file in the cache and the original. If the original has been changed more recently, then it's the one I use and regenerate the cache file. It's done in core/image.php.

I really think it's not an issue with Exposition. As I said, I had cleared the cache.