now imagecache is in core, I read that the image caches for presets flush when you save changes on them. This doesn't appear to be the case when using imagefield_focus? is that possible? I'm having a lot of trouble rebuilding thumbs now I've changed the dimensions...

Comments

anrikun’s picture

Category: bug » support

I really don't think this has to do with ImageField Focus.
Are you sure that it's not simply a browser or proxy cache issue?
Or maybe a folder/file write access misconfiguration?

Have a look at your folder where thumbs are saved.
When you save your preset (clicking "Update style"), do they get deleted?
They should. And they actually do on one of my live site (just tested it right now).

hedac’s picture

I'm having the same issue.. not having the image style flushed... not a cache browser or server missconfiguration because if I fluish the images using drush.. the images are regenerated nicely.

In drupal 7 there is no flush UI because it is supposed to be flushed automatically when saving the preset again.
I have seen that you can force flush with drush image-flush or you can run the following code (for instance using Devel):

<?php
// Flush all image styles in Drupal 7.
foreach (image_styles() as $style) {
  image_style_flush($style);
}
?>
emptyvoid’s picture

Drush seems like the only reliable solution. However one corner case is if you create a feature (using the features module) an encapsulate a image preset into the feature. If the preset is within code and not in the database and you push an update it will be reflected in the preset but the file cache will not be rebuilt.

I have confirmed in my corner case, if you go to the image preset and click "override" and save it clears the file cache.

elijah lynn’s picture