Vinai / nicer-image-names

Magento extension to build catalog image file names from product attributes so they have neat descriptive names.
77 stars 31 forks source link

Add the ability to invalidate CDN caches when adding a new image #31

Closed mpchadwick closed 8 years ago

mpchadwick commented 8 years ago

This can be useful if the image is cached on a CDN. If you'd be interested in this feature I can potentially issue a PR.

mpchadwick commented 8 years ago

So I've been starting to investigate this. It seems the challenge with a timestamp is Magento doesn't know when the image was added. However, in theory, if the file has changed sha1_file() should return a different value.

What would you think about an additional setting that allows you to run the file through that function in order to add a unique identifier?