Problem
When I tried to flush the image style cache via UI (or drush) with S3 as $scheme, the styles are not getting flushed.
ImageStyle::flush() does below to delete the files/directories.
if (file_exists($derivative_uri)) {
file_unmanaged_delete($derivative_uri);
}
I believe these functions has no effect with S3.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2833113-4.patch | 720 bytes | paulihuhtiniemi |
| #2 | 2833113-2.patch | 635 bytes | vijaycs85 |
Comments
Comment #2
vijaycs85Initial patch...
Comment #3
vijaycs85Further investigation indicates that the we are missing some file related mapping in stream wrapper. I will update this issue once I have more details.
Comment #4
vijaycs85Comment #5
paulihuhtiniemi commentedHere's a modified patch from https://www.drupal.org/node/2808579 that seems to make image style flushing to work again, but as I'm not so familiar with this module & library, I'm not sure if I'm doing something totally wrong here.
Comment #6
paulihuhtiniemi commented