We are investigating ways to improve the performance of moodle and are trying to disable activity logging on either a site level or course level. Is this possible? - so far i have not found a way to do it. The only thing i have found is to enable log deletion after specified periods of time.
I'm not sure if there is an option to disable the logs completely (could be an easy addition to the drop-down with the log life time?), but you can disable them if you have access to your moodle code: disable the function add_to_log in /lib/datalib.php. You can for example just "return true;" at the very beginning of the function. Then you can test if this gives any noticeable performance increase, this might not be the case.
I wanna make clear ...
Is this code you mean ?
function get_admin() {
global $CFG, $DB;
static $mainadmin = null;
if (isset($mainadmin)) {
return clone($mainadmin);
}
if (empty($CFG->siteadmins)) { // Should not happen on an ordinary site
return false;
}
foreach (explode(',', $CFG->siteadmins) as $id) {
if ($user = $DB->get_record('user', array('id'=>$id, 'deleted'=>0))) {
$mainadmin = $user;
break;
}
}
if ($mainadmin) {
return clone($mainadmin);
} else {
// this should not happen
return false;
}
}
Please help ...
My space harddisk become smaller coz the increase of livelog always grower i'm afraid my space was full.
Thanks a lot.