Imager-Craft icon indicating copy to clipboard operation
Imager-Craft copied to clipboard

Cache not cleared after native-craft edit of image asset

Open ghost opened this issue 5 years ago • 3 comments

When editing an image assets' crop, rotation etc. via the native Craft tools, the cache is not invalidated. Even after manually using 'Clear Imager transforms' it keeps the cached version.

It will only update after a full imager-cache wipe.

ghost avatar May 18 '19 12:05 ghost

Still works for me, can you please provide some more information about your setup. Which platform? What versions of PHP, Craft and Imager? Which transformer are you using? Where do you store your assets?

aelvan avatar May 19 '19 20:05 aelvan

It happens on both local Valet and on production. Both behind nginx 1.15. php 7.3.x. I have updated Craft and your plugin to the latest versions as of writing (3.1.27 and 2.1.10).

I'm now also using your preparse field plugin, to create transforms on save. But this also won't invalidate the cache with the (for example) cropped image.

If you want I could grab a screenrecording if you want, but only privately.

renzo-s avatar May 22 '19 08:05 renzo-s

Revisited this, and I'm still not able to reproduce.

Was thinking that maybe it was a race condition with preparse (if it's on the asset itself), but it doesn't make sense that the Clear Imager transforms wouldn't work either.

Did you check the folder on your disk after doing Clear Imager transforms? Did the files get recreated or did nothing happen? Also, there's a fair amount of logging in those methods, did you check your logs?

aelvan avatar Sep 16 '19 20:09 aelvan