mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-05-01 05:02 am

[dw-free] Clear this key in case of renames causing it to be populated and failure cascades.

[commit: http://hg.dwscoalition.org/dw-free/rev/c3af97541795]

Clear this key in case of renames causing it to be populated and failure
cascades.

Patch by [staff profile] mark.

Files modified:
  • bin/create-account
--------------------------------------------------------------------------------
diff -r 13ee105bb9f2 -r c3af97541795 bin/create-account
--- a/bin/create-account	Fri May 01 02:35:41 2009 +0000
+++ b/bin/create-account	Fri May 01 05:02:44 2009 +0000
@@ -21,6 +21,7 @@ die "Email invalid\n"
 die "Email invalid\n"
     unless $email && $email =~ /^[^@]+@[^@]+\.\w+$/;
 
+LJ::MemCache::delete( 'uidof:' . $user );
 my $u2 = LJ::load_user( $user )
     and die "User already exists\n";
 
--------------------------------------------------------------------------------