You are here

function imagecache_image_flush in ImageCache 5.2

Same name and namespace in other branches
  1. 5 imagecache.module \imagecache_image_flush()
  2. 6.2 imagecache.module \imagecache_image_flush()

Clear cached versions of a specific file in all presets.

Parameters

$path: The Drupal file path to the original image.

3 calls to imagecache_image_flush()
imagecache_imagefield_file in ./imagecache.module
Implementation of hook_imagefield_file().
imagecache_ui_preset_form in ./imagecache_ui.module
imagecache_user in ./imagecache.module
Implementation of hook_user().

File

./imagecache.module, line 870
Dynamic image resizer and image cacher.

Code

function imagecache_image_flush($path) {
  foreach (imagecache_presets() as $preset) {
    file_delete(imagecache_create_path($preset['presetname'], $path));
  }
}