Permalink
Browse files

Merge branch 'MDL-35257' of git://github.com/danpoltawski/moodle into…

… MOODLE_23_STABLE
  • Loading branch information...
2 parents 8146d3f + bd916ad commit f34cb5797ced98250a499e41ec454104d040073f @stronk7 stronk7 committed Sep 10, 2012
Showing with 10 additions and 0 deletions.
  1. +5 −0 lib/datalib.php
  2. +5 −0 lib/moodlelib.php
View
@@ -1764,6 +1764,11 @@ function user_accesstime_log($courseid=0) {
return;
}
+ if (isguestuser()) {
+ // Do not update guest access times/ips for performance.
+ return;
+ }
+
if (empty($courseid)) {
$courseid = SITEID;
}
View
@@ -3289,6 +3289,11 @@ function get_user_key($script, $userid, $instance=null, $iprestriction=null, $va
function update_user_login_times() {
global $USER, $DB;
+ if (isguestuser()) {
+ // Do not update guest access times/ips for performance.
+ return true;
+ }
+
$now = time();
$user = new stdClass();

0 comments on commit f34cb57

Please sign in to comment.