{"id":1203,"date":"2013-09-09T12:11:52","date_gmt":"2013-09-09T16:11:52","guid":{"rendered":"http:\/\/www.paradisosolutions.com\/blog\/?p=1203"},"modified":"2025-05-28T00:50:01","modified_gmt":"2025-05-28T05:50:01","slug":"testing-quiz-caching-moodle","status":"publish","type":"post","link":"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/","title":{"rendered":"Testing quiz caching in Moodle"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">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.<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">Timing parameters:<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">Question asked when the user disconnected:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">Quiz attempt in progress when the user returns:<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span id=\"docs-internal-guid--587a222-0381-0934-db27-e353175d2f20\" style=\"color: #888888; font-size: 12pt;\"><span style=\"font-family: Arial; vertical-align: baseline; white-space: pre-wrap;\">Confirmation before submitting the quiz attempt:<\/span><\/span><\/p>\n<p dir=\"ltr\">\n<p dir=\"ltr\">\n<p>&nbsp;<\/p>\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">Review your attempt:<\/span><\/p>\n<p dir=\"ltr\"><strong><span style=\"font-size: 12pt;\">Restore auto-saved content button<\/span><\/strong><\/p>\n<p dir=\"ltr\" style=\"text-align: justify;\"><span style=\"font-size: 12pt;\">We\u2019ve 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. \u00a0The 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 \u201cRestore auto-saved content\u201d button.<\/span><\/p>\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">This functionality saves the users\u00b4 every keystroke so no timer has to be set up.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p dir=\"ltr\"><strong><span style=\"font-size: 12pt;\">How to enable the button (Moodle 2.4):<\/span><\/strong><\/p>\n<ol>\n<li dir=\"ltr\">\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">Open file lib\/editor\/tinymce\/lib.php<\/span><\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">Look up for $params variable around line 137.<\/span><\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">In the \u2018plugins\u2019 item of the array add \u201c,autosave\u201d at the end and without quotes.<\/span><\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">As moodle administrator go to: Site administration &gt;&gt; Plugins &gt;&gt; Text editors &gt;&gt; TinyMCE HTML editor &gt;&gt; General settings<\/span><\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">In the Editor toolbar add \u201crestoredraft\u201d wherever you want the restore button to appear.<\/span><\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">Save changes.<\/span><\/p>\n<\/li>\n<\/ol>\n<p><span style=\"font-size: 12pt;\">\u00a0<\/span><\/p>\n<p dir=\"ltr\"><span style=\"font-size: 12pt;\">If you don\u2019t see the button appear on a text area after this try clearing the browser&#8217;s cache.<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">\u00a0<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">Confirmation before submitting the quiz caching Moodle attempt:<\/span><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>This blog post will show you how to create a quiz using the Moodle system that&#8230;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":8347,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[526],"class_list":["post-1203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-moodle","tag-caching-moodle"],"contentshake_article_id":"","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Testing quiz caching in Moodle<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Testing quiz caching in Moodle\" \/>\n<meta property=\"og:description\" content=\"This blog post will show you how to create a quiz using the Moodle system that...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/\" \/>\n<meta property=\"og:site_name\" content=\"Paradiso eLearning Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-09-09T16:11:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-28T05:50:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.paradisosolutions.com\/blog\/wp-content\/uploads\/2013\/09\/Testing-quiz-caching-in-Moodle.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"844\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/#website\",\"url\":\"https:\/\/www.paradisosolutions.com\/blog\/\",\"name\":\"Paradiso eLearning Blog\",\"description\":\"The e-learning solution you need is that we can offer you.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.paradisosolutions.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.paradisosolutions.com\/blog\/wp-content\/uploads\/2013\/09\/Testing-quiz-caching-in-Moodle.jpg\",\"width\":844,\"height\":300,\"caption\":\"Testing quiz caching in Moodle\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/#webpage\",\"url\":\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/\",\"name\":\"Testing quiz caching in Moodle\",\"isPartOf\":{\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/#primaryimage\"},\"datePublished\":\"2013-09-09T16:11:52+00:00\",\"dateModified\":\"2025-05-28T05:50:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/#\/schema\/person\/d0639621de595e0a018f832ff8a13c4b\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.paradisosolutions.com\/blog\/testing-quiz-caching-moodle\/\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/#\/schema\/person\/d0639621de595e0a018f832ff8a13c4b\",\"name\":\"Pradnya\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.paradisosolutions.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a9742082298826cd13a8ec53b1770ad?s=96&d=mm&r=g\",\"caption\":\"Pradnya\"},\"description\":\"Pradnya Maske is a Product Marketing Manager with over 10+ years of experience serving in the eLearning industry. She is based in Florida and is a senior expert associated with Paradiso eLearning. She is passionate about eLearning and, with her expertise, provides valued marketing services in virtual training.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/pradnyamaske\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","amp_validity":null,"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1203"}],"version-history":[{"count":0,"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/media\/8347"}],"wp:attachment":[{"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paradisosolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}