Imager-Craft
Imager-Craft copied to clipboard
Cache not cleared after native-craft edit of image asset
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.
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?
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.
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?