[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 05 Dec 2003 00:28:33 -0000


albertel		Thu Dec  4 19:28:33 2003 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - BUG#2442, lonnet was caching the results of _a_ call to get for user
    parameters, which is silly it should rather cache the dump of the user's parms
    
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.453 loncom/lonnet/perl/lonnet.pm:1.454
--- loncom/lonnet/perl/lonnet.pm:1.453	Thu Dec  4 16:00:23 2003
+++ loncom/lonnet/perl/lonnet.pm	Thu Dec  4 19:28:32 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.453 2003/12/04 21:00:23 albertel Exp $
+# $Id: lonnet.pm,v 1.454 2003/12/05 00:28:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3694,10 +3694,8 @@
 		my $hashid="$udom:$uname";
 		my ($result,$cached)=&is_cached(\%userresdatacache,$hashid,
 						'userres');
-		if (!defined($cached)) { 
-		    my %resourcedata=&get('resourcedata',
-					  [$courselevelr,$courselevelm,
-					   $courselevel],$udom,$uname);
+		if (!defined($cached)) {
+		    my %resourcedata=&dump('resourcedata',$udom,$uname);
 		    $result=\%resourcedata;
 		    &do_cache(\%userresdatacache,$hashid,$result,'userres');
 		}