aelvan / Imager-Craft

This plugin has been DEPRECATED. Check out Imager X instead.
MIT License
342 stars 69 forks source link

Replace time() with microtime() for temporary file name #203

Closed MflJoe closed 6 years ago

MflJoe commented 6 years ago

Stops collisions when processing lots of image transforms quickly.

md5(time()) isn't unique when processing lots of image manipulations quickly and results in errors when using cwebp:

"Temporary file save operation failed: " "unlink(/Users/joe/Sites/example-site/storage/runtimeimager/temp/52b483018ee804f1eac2e29d1b464cf5.jpg): No such file or directory"

MflJoe commented 6 years ago

@aelvan Is this likely to make it into master?

aelvan commented 6 years ago

This has been merged into 2.1.1. Thanks for contributing!