1 image.module | image_path_flush($path) |
Clear cached versions of a specific file in all styles.
Parameters
$path: The URI or path to the original image.
File
- core/
modules/ image/ image.module, line 475 - Exposes global functionality for creating image styles.
Code
function image_path_flush($path) {
$styles = image_styles();
foreach ($styles as $style) {
$image_path = image_style_path($style['name'], $path);
if (file_exists($image_path)) {
file_unmanaged_delete($image_path);
}
}
}