X

Testing quiz caching in Moodle

This blog post will show you how to create a quiz using the Moodle system that will restore the users inputted answers in case communication with the server is interrupted by a faulty Internet connection. This is especially useful in the Distance Learning environment where Internet connections are oftentimes unreliable.

Timing parameters:


Question asked when the user disconnected:

 

Quiz attempt in progress when the user returns:

ย 

Confirmation before submitting the quiz attempt:

 

Review your attempt:

Restore auto-saved content button

Weโ€™ve enabled a button to restore the content a user has entered into a text area after he/she has lost the connection or communication is interrupted between his or her location and the moodle server. ย The way it works is that when the user comes back after communication with the server has been interrupted the user can restore the previously entered text by clicking the โ€œRestore auto-saved contentโ€ button.

This functionality saves the usersยด every keystroke so no timer has to be set up.

 

How to enable the button (Moodle 2.4):

  1. Open file lib/editor/tinymce/lib.php

  2. Look up for $params variable around line 137.

  3. In the โ€˜pluginsโ€™ item of the array add โ€œ,autosaveโ€ at the end and without quotes.

  4. As moodle administrator go to: Site administration >> Plugins >> Text editors >> TinyMCE HTML editor >> General settings

  5. In the Editor toolbar add โ€œrestoredraftโ€ wherever you want the restore button to appear.

  6. Save changes.

ย 

If you donโ€™t see the button appear on a text area after this try clearing the browser’s cache.

ย 

Confirmation before submitting the quiz caching Moodle attempt:

Follow us!

Do NOT follow this link or you will be banned from the site!