johnmnemonik / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

changing the width/height of a photo size should invalidate cache for that size #166

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Possible implementation: have a valid_since datetime field on photosizes, which 
is reset to current time whenever a significant change happens to it, like the 
width, height, crop, etc. fields change. When getting an image of that size, 
regenerate the cached image if its timestamp is before valid_since.

Not a major issue, since for production you shouldn't be changing photo sizes 
that much, but it's cleaner than having to clear out the cache manually.

Original issue reported on code.google.com by valtron2...@gmail.com on 1 Nov 2011 at 6:30