jdriscoll/django-imagekit — Issue #74: Spec files are deleted on instance save
Author: davelowe
Created: 2011-12-01 19:15:53+00:00
State: open

The intent is great — as I understand it, refresh the spec files when instance is saved because the image may have been updated — but it wreaks havoc when the image spec url accessor isn't used in templates and pre_cache is not set to True.

When pre-cache is True, the spec files are generated immediately after deletion. But if a post_save handler is the desired method to generate spec files when the instance is created (to work well with celery, for instance), and calling the image size directly in templates isn't ideal (in my use-case, because I'm using cloudfiles for spec file storage and there's a second or three lag during this operation) then images vanish on future instance saves and never get regenerated.