[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
raeburn
raeburn@source.lon-capa.org
Thu, 30 Sep 2010 14:08:51 -0000
raeburn Thu Sep 30 14:08:51 2010 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- Bug 5703 (comment 10).
- devalidate emailscache if permanentemail is changed.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1086 loncom/lonnet/perl/lonnet.pm:1.1087
--- loncom/lonnet/perl/lonnet.pm:1.1086 Sun Sep 26 01:50:33 2010
+++ loncom/lonnet/perl/lonnet.pm Thu Sep 30 14:08:51 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1086 2010/09/26 01:50:33 raeburn Exp $
+# $Id: lonnet.pm,v 1.1087 2010/09/30 14:08:51 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6861,6 +6861,9 @@
if ($reply ne 'ok') {
return 'error: '.$reply;
}
+ if ($names{'permanentemail'} ne $oldnames{'permanentemail'}) {
+ &Apache::lonnet::devalidate_cache_new('emailscache',$uname.':'.$udom);
+ }
my $sqlresult = &update_allusers_table($uname,$udom,\%names);
&devalidate_cache_new('namescache',$uname.':'.$udom);
$logmsg = 'Success modifying user '.$logmsg;