File:  [LON-CAPA] / loncom / html / adm / help / tex / Modify_Course_Table_Lifetime.tex
Revision 1.1: download - view: text, annotated - select for diffs
Tue Feb 22 16:04:03 2022 UTC (2 years, 4 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, HEAD
- Missing help files for modification of course defaults by Domain Coordinator
  for specific course(s) via: "View or modify a course or community".

\label{Modify_Course_Table_Lifetime}

The default lifetime (since last update) for "temporary" MySQL tables containing student performance data is 172800s (i.e., 2 days). A different default lifetime can be set by course type, which will apply to MySQL tables on the course's homeserver only. The cleanup_database.pl script which is run nightly by cron will check the time elapsed since last update to each temporrary MySQL table, and will drop the table if that time is longer then the lifetime in effect for tables in the course to which the table belongs.

A Domain Coordinator can also choose to override the domain default (on a course-by-course basis) by setting a value for the lifetime (in seconds) for temporary MySQL tables for a selected course.

A reason to set a long lifetime for one or more courses would be if a script is run periodically on a domain's primary library to export student scores by folder those particular LON-CAPA courses.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>