- Issue created by @a.milkovsky
- 🇺🇸United States cmlara
We shouldn't touch the ImageStyle entity, it is massive and a complex mess until ✨ Split ImageStyle into the config entity and a separate event-based image processing service Needs work gets into core.
We should also avoid coupling too closely to core, we are an I/O layer, the less coupling the better.
Our best solution would be to modify S3FileService::deleteRecursive() to obtain a directory list and delete in batches so that there are not as many API requests. This would improve recursive deletes across the entire ecosystem instead of just for ImageStyle flushes.
We could probably use \Aws\S3\BatchDelete to save us from writing a large portion of the code and to only need to provide an iterator of files.
Moving to a feature request and assigning to 4.x for initial implementation.
- 🇫🇮Finland ZeiP
Core issue ✨ Add possibility to skip flushing all image style derivatives when an image style configuration changes Needs work is also about this.