Steps to reproduce:

  1. Verify that you have cached image styles by going to the image style directory for your site. Typically in <site root>/sites/default/files/styles.
  2. If you have cached images you should see a folder for each existing image style (e.g. large, medium, thumbnail).
  3. On your site go to the image styles admin page: admin/config/media/image-styles.
  4. Click the "flush" link for one of these styles. On the next page click "Flush" again to confirm.
  5. The message indicates the images were flushed successfully.
  6. Examine the image style directory again. The flush did not delete the image style folder nor any of its contents.
CommentFileSizeAuthor
#1 imagestyleflush-1961394-1.patch555 bytesilleace

Comments

illeace’s picture

StatusFileSize
new555 bytes

Here's a patch to fix the issue.

to.stepan.kuzmin@gmail.com’s picture

Status: Active » Needs review

Thanks! I've just released Image style flush 7.x-1.2 with your patch.

smalltree’s picture

Still not working for me. I had to manually delete the file on server. :(

coredumperror’s picture

smalltree, you may need the patch in this comment from #1057656: Image styles don't flush for images stored non-default schemes. There's a bug in the core image_style_flush() function which has only just today been fixed.

robcolburn’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)

Looks like this was merged in 11a709c