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:

Sach Chaudhari

Sach Chaudhari is an expert in the field of eLearning platform development. He is the CEO of , which focuses on developing eLearning platforms. Sach is based in Silicon Valley. He studied business at Harvard Business School and computer science at the University of Cincinnati. He has various patents in software engineering under his name. Before starting his company, Sach worked for various start-up and fortune 500 companies in Silicon Valley. You can find his profile on and Send him an email at [email protected]

No Comments

Post A Comment

Privacy & Cookies Policy Do NOT follow this link or you will be banned from the site!