--- loncom/interface/Attic/lonspreadsheet.pm 2002/09/30 18:03:39 1.113 +++ loncom/interface/Attic/lonspreadsheet.pm 2002/09/30 18:47:43 1.114 @@ -1,5 +1,5 @@ # -# $Id: lonspreadsheet.pm,v 1.113 2002/09/30 18:03:39 matthew Exp $ +# $Id: lonspreadsheet.pm,v 1.114 2002/09/30 18:47:43 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2096,8 +2096,11 @@ sub loadassessment { &Apache::lonnet::reply('dump:'.$udom.':'.$uname.':resourcedata',$uhome); if ($reply!~/^error\:/) { $userrdatas{$uname.'___'.$udom}=$reply; - $userrdatas{$uname.'___'.$udom.'.last_cache'}=time; } + # Most of the time the user does not have a 'resourcedata.db' + # file. We need to cache that we got nothing instead of bothering + # with requesting it every time. + $userrdatas{$uname.'___'.$udom.'.last_cache'}=time; } foreach (split(/\&/,$userrdatas{$uname.'___'.$udom})) { my ($name,$value)=split(/\=/,$_);