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.

CommentFileSizeAuthor
#5 2833113-4.patch720 bytespaulihuhtiniemi
#2 2833113-2.patch635 bytesvijaycs85

Comments

vijaycs85 created an issue. See original summary.

vijaycs85’s picture

Project: Flysystem » Flysystem - S3
StatusFileSize
new635 bytes

Initial patch...

vijaycs85’s picture

Further investigation indicates that the we are missing some file related mapping in stream wrapper. I will update this issue once I have more details.

vijaycs85’s picture

Status: Active » Postponed
paulihuhtiniemi’s picture

StatusFileSize
new720 bytes

Here'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.

paulihuhtiniemi’s picture

Status: Postponed » Needs review