Skip to content

Instantly share code, notes, and snippets.

@ienliven
Created October 10, 2012 03:11
Show Gist options
  • Select an option

  • Save ienliven/3862955 to your computer and use it in GitHub Desktop.

Select an option

Save ienliven/3862955 to your computer and use it in GitHub Desktop.
Index: cms/moodle/mod/ibis/lib.php
===================================================================
--- cms/moodle/mod/ibis/lib.php (.../2012_09_RC_v33.5/src/cms/moodle) (revision 7894)
+++ cms/moodle/mod/ibis/lib.php (.../2012_10_releasecandidate_newdb_v33.5/src/cms/moodle) (working copy)
...
- //Error handling (retry loop)
- do {
- $result = QDB::question("ibis-cms",$sql);
-
- if ($result === FALSE) {
- error_log("Unable to get answer from database as to whether assignment ID #" . (int) $wid . " has been attempted by students or not.");
- $retry_wait_time = ($retry_wait_time + 1) * 2;
- sleep($retry_wait_time);
- }
- } while ($result === FALSE);
-
+ $result = QDB::question("ibis-cms",$sql);
+ if ($result === FALSE) {
+ error_log("Unable to get answer from database as to whether assignment ID #" . (int) $wid . " has been attempted by students or not.");
+ return FALSE;
+ }
@ienliven
Copy link
Copy Markdown
Author

and fix bellow.

@ienliven
Copy link
Copy Markdown
Author

possible cause and solution admin slownes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment