--- loncom/lonnet/perl/lonnet.pm 2007/08/31 12:33:29 1.909 +++ loncom/lonnet/perl/lonnet.pm 2007/09/05 17:37:51 1.910 @@ -1,7 +1,7 @@ # The LearningOnline Network # TCP networking package # -# $Id: lonnet.pm,v 1.909 2007/08/31 12:33:29 raeburn Exp $ +# $Id: lonnet.pm,v 1.910 2007/09/05 17:37:51 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1223,8 +1223,10 @@ sub do_cache_new { $time=600; } if ($debug) { &Apache::lonnet::logthis("Setting $id to $value"); } - if (!($memcache->set($id,$setvalue,$time))) { + my $result = $memcache->set($id,$setvalue,$time); + if (! $result) { &logthis("caching of id -> $id failed"); + $memcache->disconnect_all(); } # need to make a copy of $value #&make_room($id,$value,$debug);