[LON-CAPA-cvs] cvs: rat / lonuserstate.pm

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 17 Feb 2005 09:09:12 -0000


albertel		Thu Feb 17 04:09:12 2005 EDT

  Modified files:              
    /rat	lonuserstate.pm 
  Log:
  - with to new caching mechanism this early cache seeding doesn't gain us anything
  
  
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.83 rat/lonuserstate.pm:1.84
--- rat/lonuserstate.pm:1.83	Mon Dec  6 16:41:01 2004
+++ rat/lonuserstate.pm	Thu Feb 17 04:09:11 2005
@@ -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.83 2004/12/06 21:41:01 albertel Exp $
+# $Id: lonuserstate.pm,v 1.84 2005/02/17 09:09:11 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -152,9 +152,10 @@
 		    }
 		    my $title=$token->[2]->{'title'};
 		    $title=~s/\&colon\;/\:/gs;
-		    &Apache::lonnet::do_cache(\%Apache::lonnet::titlecache,
-		       &Apache::lonnet::encode_symb($uri,$token->[2]->{'id'},
-						    $turi),$title,'title');
+#		    my $symb=&Apache::lonnet::encode_symb($uri,
+#							  $token->[2]->{'id'},
+#							  $turi);
+#		    &Apache::lonnet::do_cache_new('title',$symb,$title);
                     unless ($ispage) {
                         $turi=~/\.(\w+)$/;
                         my $embstyle=&Apache::loncommon::fileembstyle($1);
@@ -304,7 +305,7 @@
         }
 
     } else {
-        $errtext.='Map not loaded: The file does not exist. ';
+        $errtext.='Map not loaded: The file ('.$fn.') does not exist. ';
     }
 }