--- loncom/interface/statistics/lonstudentsubmissions.pm 2004/03/12 21:13:11 1.8 +++ loncom/interface/statistics/lonstudentsubmissions.pm 2004/03/16 16:30:32 1.9 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentsubmissions.pm,v 1.8 2004/03/12 21:13:11 matthew Exp $ +# $Id: lonstudentsubmissions.pm,v 1.9 2004/03/16 16:30:32 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -295,11 +295,12 @@ sub GetStudentAnswers { my ($resource,$partid,$respid) = ($problem->{'resource'}, $problem->{'part'}, $problem->{'respid'}); + # Read in the cache (if it exists) before we start timing things. + &Apache::lonstathelpers::ensure_proper_cache($resource->{'symb'}); # Open progress window my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin ($r,'Student Answer Compilation Status', 'Student Answer Compilation Progress', scalar(@$Students)); - $r->print("\n"); $r->rflush(); foreach my $student (@$Students) { last if ($c->aborted()); @@ -311,15 +312,14 @@ sub GetStudentAnswers { &mt('last student')); $student->{'answer'} = $answer; } + &Apache::lonstathelpers::write_answer_cache(); return if ($c->aborted()); - $r->print("
\n"); $r->rflush(); # close progress window &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); return; } - ######################################################### ######################################################### ##