I expected the flush function to remove all iamges created by a ruleset to be removed from the directory, so that they will be recreated, if a page containing that imagecache ruleset is accessed.

But all the images stay in that folder.

This installation is running on SuSE.

Might be a Problem with 'unlink()'.

*Investigating*

Comments

jvalletto’s picture

I think I found the problem. And it's just a simple fix.

Around line 185:

 case t('Flush Preset'):
          _imagecache_ruleset_flush($presetid);
          break;

Should be:

 case t('Flush Preset Images'):
          _imagecache_ruleset_flush($presetid);
          break;

Hope that helps.

jvalletto’s picture

I think I found the problem. And it's just a simple fix.

Around line 185:

 case t('Flush Preset'):
          _imagecache_ruleset_flush($presetid);
          break;

Should be:

 case t('Flush Preset Images'):
          _imagecache_ruleset_flush($presetid);
          break;

Hope that helps.

suit4’s picture

Status: Active » Fixed

Yes, I found it myself.
Image Flush never got called at all.

Thanks.

dopry’s picture

I committed the fix to the 4.7 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)