Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…nto MOODLE_22_STABLE
  • Loading branch information...
commit 86e2c5912851910e6fe0e58ccae72bec91cae35e 2 parents 94ff6cf + 879c765
Eloy Lafuente (stronk7) authored September 11, 2012
5  lib/datalib.php
@@ -1762,6 +1762,11 @@ function user_accesstime_log($courseid=0) {
1762 1762
         return;
1763 1763
     }
1764 1764
 
  1765
+    if (isguestuser()) {
  1766
+        // Do not update guest access times/ips for performance.
  1767
+        return;
  1768
+    }
  1769
+
1765 1770
     if (empty($courseid)) {
1766 1771
         $courseid = SITEID;
1767 1772
     }
5  lib/moodlelib.php
@@ -3201,6 +3201,11 @@ function get_user_key($script, $userid, $instance=null, $iprestriction=null, $va
3201 3201
 function update_user_login_times() {
3202 3202
     global $USER, $DB;
3203 3203
 
  3204
+    if (isguestuser()) {
  3205
+        // Do not update guest access times/ips for performance.
  3206
+        return true;
  3207
+    }
  3208
+
3204 3209
     $now = time();
3205 3210
 
3206 3211
     $user = new stdClass();

0 notes on commit 86e2c59

Please sign in to comment.
Something went wrong with that request. Please try again.