Index: imagecache.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v retrieving revision 1.86 diff -u -p -r1.86 imagecache.module --- imagecache.module 8 Aug 2008 17:05:11 -0000 1.86 +++ imagecache.module 6 Oct 2008 12:19:14 -0000 @@ -518,8 +518,19 @@ function imagecache_build_derivative($ac return true; } - - +/** + * Implementation of hook_user(). + */ +function imagecache_user($op, &$edit, &$account, $category = NULL) { + // Flush cached old user picture. + if ($op == 'update' && $account->picture) { + imagecache_image_flush($account->picture); + } +} + +/** + * Implementation of hook_imagefield_file(). + */ function imagecache_imagefield_file($op, $file) { switch ($op) { // Delete imagecache presets when imagecache images are deleted.