Ticket #67 (closed defect: fixed)
Create more reliable thumbnail refresh conditions
| Reported by: | mike | Owned by: | mike |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 1.0b2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The code currently in place which determines whether or not to regenerate the thumbnail is fairly cumbersome and does not cover all cases. This code checks dimensions of the thumbnail and compares is it to the config size, among other things. The code fails in the following ways: It will always regenerate thumbnails for the case when the original image is square. It cannot tell if you have changed the JPG compression settings and will not regenerate the thumbs unless you clear the cache or change the thumbnail size.
I propose a much simpler method to determine if a thumbnail needs to be regenerated. A simple timestamp on the config table which tells you when the config settings were last updated. Comparing this to the date modified on the thumbnail image can tell you if they need to be refreshed. Any better solutions?
