plone.app.caching purges ImageFields with https://github.com/plone/plone.app.caching/blob/master/plone/app/caching/purge.py#L179: ``` if IImageField.providedBy(field): for size in field.getAvailableSizes(self.context).keys(): yield "%s_%s" % (fieldURL, size,) ``` That is, when I have a news item with an image included and I change it, then all available scale sizes of this image are purged on the caching proxy (e.g. varnish). With raptus.multilanguagefields this does not work anymore, because the image scale is patched to be "image___<lang>___scale". I think this is done in https://github.com/Raptus/raptus.multilanguagefields/blob/master/raptus/multilanguagefields/patches/imaging.py#L52 To fix one would just need to copy https://github.com/plone/plone.app.caching/blob/master/plone/app/caching/purge.py over to raptus.multilanguagefields and to register and adjust it accordingly.
plone.app.caching purges ImageFields with https://github.com/plone/plone.app.caching/blob/master/plone/app/caching/purge.py#L179:
That is, when I have a news item with an image included and I change it, then all available scale sizes of this image are purged on the caching proxy (e.g. varnish). With raptus.multilanguagefields this does not work anymore, because the image scale is patched to be "image______scale". I think this is done in https://github.com/Raptus/raptus.multilanguagefields/blob/master/raptus/multilanguagefields/patches/imaging.py#L52
To fix one would just need to copy https://github.com/plone/plone.app.caching/blob/master/plone/app/caching/purge.py over to raptus.multilanguagefields and to register and adjust it accordingly.