Index: imagecache.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagecache/imagecache.module,v
retrieving revision 1.68.2.10
diff -u -p -r1.68.2.10 imagecache.module
--- imagecache.module	29 Oct 2008 21:30:23 -0000	1.68.2.10
+++ imagecache.module	4 Dec 2008 01:32:09 -0000
@@ -484,8 +484,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' && !empty($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.
