Index: openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl,v diff -u -r1.53 -r1.54 --- openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl 20 Aug 2007 21:47:38 -0000 1.53 +++ openacs-4/packages/acs-tcl/tcl/community-core-procs.tcl 21 Aug 2007 09:08:57 -0000 1.54 @@ -406,8 +406,12 @@ if { $authority_id eq "" } { set authority_id [auth::authority::local] } - - return [util_memoize [list acs_user::get_by_username_not_cached -authority_id $authority_id -username $username]] + + set user_id [util_memoize [list acs_user::get_by_username_not_cached -authority_id $authority_id -username $username]] + if {$user_id eq ""} { + util_memoize_flush [list acs_user::get_by_username_not_cached -authority_id $authority_id -username $username] + } + return $user_id } ad_proc -public acs_user::get_by_username_not_cached {