image_path_flush($path)
Clears cached versions of a specific file in all styles.
$path: The Drupal file path to the original image.
function image_path_flush($path) { $styles = ImageStyle::loadMultiple(); foreach ($styles as $style) { $style->flush($path); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!image!image.module/function/image_path_flush/8.1.x