[LON-CAPA-cvs] cvs: loncom /auth lonlogout.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 01 Oct 2007 20:36:38 -0000
albertel Mon Oct 1 16:36:38 2007 EDT
Modified files:
/loncom/auth lonlogout.pm
Log:
- flush the course logs can take a while, don't make the user have to wait for that
Index: loncom/auth/lonlogout.pm
diff -u loncom/auth/lonlogout.pm:1.27 loncom/auth/lonlogout.pm:1.28
--- loncom/auth/lonlogout.pm:1.27 Fri Aug 24 20:51:24 2007
+++ loncom/auth/lonlogout.pm Mon Oct 1 16:36:37 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Logout Handler
#
-# $Id: lonlogout.pm,v 1.27 2007/08/25 00:51:24 albertel Exp $
+# $Id: lonlogout.pm,v 1.28 2007/10/01 20:36:37 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -139,10 +139,15 @@
$relogmessage
$end_page
ENDDOCUMENT
- &Apache::lonnet::flushcourselogs();
+ $r->register_cleanup(\&flush_course_logs);
return OK;
}
+sub flush_course_logs {
+ &Apache::lonnet::flushcourselogs();
+ return OK;
+}
+
1;
__END__