image_path_flush($path)
Clears cached versions of a specific file in all styles.
Parameters
$path: The Drupal file path to the original image.
File
- core/modules/image/image.module, line 225
- Exposes global functionality for creating image styles.
Code
1 2 3 4 5 6 | function image_path_flush( $path ) { $styles = ImageStyle::loadMultiple(); foreach ( $styles as $style ) { $style -> flush ( $path ); } } |
Please login to continue.