Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-29519 move plagiarism cron to after event queue

  • Loading branch information...
commit 8cf1862ccc8c57c80646629650859e5d0003705f 1 parent e63ae06
Dan Marsden authored September 26, 2011

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  lib/cronlib.php
8  lib/cronlib.php
@@ -126,10 +126,6 @@ function cron_run() {
126 126
     }
127 127
     mtrace('Finished blocks');
128 128
 
129  
-    //now do plagiarism checks
130  
-    require_once($CFG->libdir.'/plagiarismlib.php');
131  
-    plagiarism_cron();
132  
-
133 129
     mtrace("Starting quiz reports");
134 130
     if ($reports = $DB->get_records_select('quiz_reports', "cron > 0 AND ((? - lastcron) > cron)", array($timenow))) {
135 131
         foreach ($reports as $report) {
@@ -187,6 +183,10 @@ function cron_run() {
187 183
         mtrace('done');
188 184
     }
189 185
 
  186
+    //now do plagiarism checks
  187
+    require_once($CFG->libdir.'/plagiarismlib.php');
  188
+    plagiarism_cron();
  189
+
190 190
 /// Run all core cron jobs, but not every time since they aren't too important.
191 191
 /// These don't have a timer to reduce load, so we'll use a random number
192 192
 /// to randomly choose the percentage of times we should run these jobs.

0 notes on commit 8cf1862

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