[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /lonnet/perl lonnet.pm
raeburn
raeburn@source.lon-capa.org
Fri, 01 Oct 2010 14:26:08 -0000
raeburn Fri Oct 1 14:26:08 2010 EDT
Modified files: (Branch: version_2_10_X)
/loncom/lonnet/perl lonnet.pm
Log:
- Backport 1.1087.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1056.4.10 loncom/lonnet/perl/lonnet.pm:1.1056.4.11
--- loncom/lonnet/perl/lonnet.pm:1.1056.4.10 Mon Sep 27 01:41:33 2010
+++ loncom/lonnet/perl/lonnet.pm Fri Oct 1 14:26:07 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1056.4.10 2010/09/27 01:41:33 raeburn Exp $
+# $Id: lonnet.pm,v 1.1056.4.11 2010/10/01 14:26:07 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6970,6 +6970,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;