function hook_imagecache_preset_flush in ImageCache 6.2
Allows other modules to perform actions when a preset is about to be flushed.
This hook can be used to send purge requests to a reverse proxy or delete files from a remote file server or CDN when the imagecached versions are flushed.
Implementations of hook_imagecache_preset_flush should not delete the images in $presetdir, as ImageCache will perform this action.
Parameters
$presetdir: The directory containing the images about to be flushed.
$preset: An ImageCache preset array.
1 invocation of hook_imagecache_preset_flush()
- imagecache_preset_flush in ./
imagecache.module - Flush cached media for a preset.
File
- ./
imagecache.api.php, line 102 - Hooks provided by the ImageCache module.
Code
function hook_imagecache_preset_flush($presetdir, $preset) {
}