--- rat/lonuserstate.pm 2003/06/20 18:57:58 1.59 +++ rat/lonuserstate.pm 2003/09/19 18:20:35 1.60 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construct and maintain state and binary representation of course for user # -# $Id: lonuserstate.pm,v 1.59 2003/06/20 18:57:58 albertel Exp $ +# $Id: lonuserstate.pm,v 1.60 2003/09/19 18:20:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -120,12 +120,12 @@ sub loadmap { $hash{'kind_'.$rid}='res'; $hash{'title_'.$rid}=$token->[2]->{'title'}; my $turi=$token->[2]->{'src'}; - $Apache::lonnet::titlecache{ - &Apache::lonnet::symbclean( - &Apache::lonnet::declutter($uri).'___'. - $token->[2]->{'id'}.'___'. - &Apache::lonnet::declutter($turi))}= - [$token->[2]->{'title'},time]; + &Apache::lonnet::do_cache(\%Apache::lonnet::titlecache, + &Apache::lonnet::symbclean( + &Apache::lonnet::declutter($uri).'___'. + $token->[2]->{'id'}.'___'. + &Apache::lonnet::declutter($turi)), + $token->[2]->{'title'}); unless ($ispage) { $turi=~/\.(\w+)$/; my $embstyle=&Apache::loncommon::fileembstyle($1);