NorioExam works alongside common caching and optimisation plugins and tells them what they need to know. You do not have to change a setting for this.
Pages NorioExam keeps out of the page cache
Five screens are marked so caching plugins do not store them: the exam screen, the learner dashboard, and the login, registration and lost password forms. Each holds something a stored copy gets wrong:
- a security token that WordPress stops accepting after twelve hours, so a stale copy makes Start do nothing and answers stop saving;
- the guest’s cookie, which a stored copy cannot set, so a guest could not resume or see their result;
- content that differs per learner, such as Start or Resume and the link to their last result.
Certificate download links are kept out of the cache the same way, because each one shows one learner’s name and score.
Every other page on your site is cached exactly as before. If your caching plugin has a “force cache” or “always cache” list, do not put these pages on it.
NorioExam marks pages with the DONOTCACHEPAGE flag, which LiteSpeed Cache, WP Rocket, W3 Total Cache and WP Super Cache each read. It was tested directly with LiteSpeed Cache and W3 Total Cache. If you use WP Rocket or WP Super Cache, check the exam screen once after you turn on your cache.
Exams placed outside page content
NorioExam finds the shortcode or block in a page’s own content. It cannot see one placed in a widget, a theme template or template part, a page builder widget or a synced pattern. If you place an exam, a dashboard or a sign-in form that way, add that page’s address to your caching plugin’s exclusion list yourself.
JavaScript settings
The exam screen is plain JavaScript and works with minification, file combining and deferred loading.
- Delay JavaScript until interaction (LiteSpeed’s “Load JS Deferred: Delayed”, WP Rocket’s “Delay JavaScript execution”): the learner’s first click only loads the script, so they have to click Start twice. Nothing is lost and no second attempt is created, but it is annoying. Exclude
norioexam-frontend.jsfrom the delay, or leave the exam pages out of that setting. - Combine JavaScript files in LiteSpeed Cache is safe to use.
CSS, lazy loading and object caching
Critical CSS, asynchronous CSS and image lazy loading were tested on the exam screen and the learner dashboard with LiteSpeed Cache, with no problem. A persistent object cache is safe to use.