Quiz Wifi Resilience Mode
- Moodle 1.9–5.1
- 更新 2026-07-28
The Wifiresilience accessrule is designed to allow students to continue work on deferred-feedback quiz attempts even if the network connection goes down. For this purpose Wifiresilience makes use of localstorage. Stored answers can be accessed, synced to server and also be downloaded manually in case connection does not come back.
Wifiresilience Quiz Access Rule
The Wifiresilience accessrule is designed to allow students to continue work on deferred-feedback quiz attempts even if the network connection goes down. For this purpose Wifiresilience makes use of localstorage. Stored answers can be accessed, synced to server and also be downloaded manually in case connection does not come back.
Note:
The functionality of wifi resilience plugin is restricted to question types which do not include connection to external systems. Examples of question types for which the functionality of the plugin are not working are qtype_stack or qtype_coderunner.
The Wifiresilience accessrule is built on top of Quiz fault-tolerant mode (quizaccess_offlinemode) by Tim Hunt but adding additional features. Credits here go to Tim Hunt for creating Quiz fault-tolerant mode!
Installation:
1. Extract the contents of the downloaded zip to `mod/quiz/accessrule`.
2. Rename the extracted folder to `wifiresilience`.
3. Start the Moodle upgrade procedure.
Admin Settings:
– **quizaccess_wifiresilience | defaultenabled**
You can configure whether the Wifi Resilience Mode should be enabled by default for new quizzes or not.
– **quizaccess_wifiresilience | privatekey**
You can use public-key cryptography to protect the downloaded responses. To do that, you need to supply a private/public key pair. You can generate a private key using `openssl genrsa -out rsa_1024_priv.pem 1024` at the command-line (if you have OpenSSL installed from https://www.openssl.org/ ). Then paste the content of the rsa_1024_priv.pem file into this box.
– **quizaccess_wifiresilience | publickey**
This must correspond to the private key. You can generate it from the private key using `openssl rsa -pubout -in rsa_1024_priv.pem -out rsa_1024_pub.pem` then past the contents of rsa_1024_pub.pem here.
– **quizaccess_wifiresilience | wifitoken**
Web service token to send emergency files in background when the device is connected. This token can be generated from (Search “webservicetokens” / manage tokens) in site administration pages.
– **quizaccess_wifiresilience | prechecks**
- 5.2Moodle 5.1, 5.2
- 5.0Moodle 4.5, 5.0, 5.1
- 4.4Moodle 4.4
- 4.4Moodle 4.2, 4.3