Can you make HD quiz pagination work with caching?
Hi James,
I think there must be something else going on with your site, performance wise. HD Quiz is very heavily optimized for speed.
HD Quiz comes with two types of pagination. There is the recommended version, which simply uses JavaScript to show or hide the relevant questions. This is enabled per question, with the entire quiz loaded on the same page.
There is also WP Pagination which splits the quiz into literal new pages.
I don’t know which version you are referring to, but neither should have any effect on performance of either your computer’s CPU, or your server’s CPU.
Since you are asking about page caching, I’m going to assume that you are using WP Pagination. Page caching will work here as well, but in limited instances. HD Quiz needs to pass data between pages, and it does this using the URL. Since the score will be different between pages, if one of your users has a unique quiz state, your caching solution will need to re-cache the page for that unique state.
Ultimately, these are all symptoms, though. If simply loading a page is causing your server CPU to spike, you need to do some revaluation of your overall site. Verify/clean up your database (database queries are usually what cause the most CPU performance issues), take a look at your theme, and of course, any other plugins you have installed.
Things like the free Query Monitor plugin can be great at helping you track down slow queries, and figuring out the cause.
For a baseline, I just enabled WP Paginate here on this site for the demo quiz to test, and the entire database query lookup only increases by 0.0011 seconds.
Hope this help!
Hi Dylan
Would you be able to contact us on the email we’ve provided,
Many thanks
This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.
For some reason paginated HD quiz seems to use heavy CPU.
Is it possible to not make it dynamic so it can be statically cached?