• Resolved Tano

    (@tanohex)


    Please note that in your latest update (v1.11.1), again, you did something that broke compatibility with LiteSpeed Cache.

    When you’re not logged in, on the Learn page, when you click on Start Quiz, nothing happens and you get:

    LiteSpeed settings:

    And in Excludes > Do Not Cache URIs:

    /account/$
    /checkout/$
    /instructor-registration/$
    /learn/$

    This happened before, you fixed it, now it happens again…

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @tanohex,

    We tried to replicate the issue on our site with LiteSpeed cache, but we are unable to do so. We recommend the same plugin for other users, but they have not faced such an issue.

    Also, the learn page shows a build with Divi. If you have customized the page, we highly recommend that you make it blank and do not modify it via any page builders.

    If the LiteSpeed cache continuously affects your site, we have also recommended other cache plugins. You can try other cache plugins as well to make your site smoother.

    Regards!

    Thread Starter Tano

    (@tanohex)

    Please let me doubt your issue replication skills… ??

    My web host uses LiteSpeed Web Server, so I get huge benefits by using their plugin.

    Again, the steps to reproduce the issue:

    1. Install WordPress
    2. Install Masteriyo
    3. Install LiteSpeed Cache
    4. Disable caching for the Learn Page and add the Excludes > Do Not Cache URIs
    5. Create a course and a Quiz
    6. Log out > Delete the browser cache
    7. While being logged out, start a course and go to the quiz part.

    Here’s a demo of my first Masteriyo website. It currently uses older versions (WP v6.2.3, Masteriyo v1.7.2 & LiteSpeed v6.0.0.1). I kept this on purpose, because it worked fine!

    Start Course, go to the Quiz and hit Start Quiz. As you can see, it works fine there.

    Now, do the same on my latest website, which uses the latest plugins (WP v6.5.4, Masteriyo v1.11.1 & LiteSpeed v6.2.0.1).

    Can you see it now? ?? It worked before (older versions) and it doesn’t work now.

    With all due respect, that’s why I’m doubting your issue replication skills.

    PS: Both websites use the same hosting and mostly the same plugins.

    The only way to fix it, is to completely disable the LiteSpeed Cache plugin.

    Thanks!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @tanohex,

    We have followed the same process in our multiple testing environments, but we are unable to find such an issue. Since the cache management is from the LightSpeed cache, have you contacted plugin support for this issue? Maybe the caching-specific page feature for non-logged-in users is not working.

    Regards!

    Thread Starter Tano

    (@tanohex)

    To me, it’s weird the fact that you can’t reproduce this, as I’m having the exact issue, on multiple sites, but I can’t tell if it happened after a Masteriyo, or a LiteSpeed Cache update.

    However, I tend to believe that Masteriyo is the culprit here, because of the following:

    • The quiz page when the user is not logged in:

    As you can see, the browser reports that the page is indeed uncached.

    Now, the HUGE issue is that I’ve completely disabled LiteSpeed Cache plugin, but I still can’t access the quiz…

    EDIT: Some more testing. I set the LiteSpeed cache preset to Basic, and in Page Optimization > CSS/JS Settings, I disabled everything, and for a minute it worked. Now, it broke again…

    And I now see this:

    Deleted LiteSpeed completely on this website. Please let me know if you can start this quiz. ??

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @tanohex,

    Could you please download the Masteriyo plugin file from this link: https://drive.google.com/file/d/1rWMOuB3QD3vojna8-dXiEAD9lmM4vnaU/view?usp=sharing and check whether the issue resolves or not. If this issue is resolved using the provided zip, we will include this fix in our next plugin update.

    Regards!

    Thread Starter Tano

    (@tanohex)

    @shresthauzwal Finally, this fixes the issue!

    I tested both logged out and logged in, in the following scenarios:

    1. LiteSpeed Cache Uninstalled – Issue fixed, works fine.
    2. LiteSpeed Cache Installed > Advanced Preset enabled – Same issue. To fix it, I had to also disable Cache REST API in the Cache Control Settings. So you need to update the note in your documentation, for users to also disable the REST API caching.

    You can safely apply the new code in \includes\RestApi\Controllers\Version1\QuizAttemptsController.php in your next version.

    Thanks a lot!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @tanohex,

    Thank you for the confirmation,

    We will resolve this thread; if needed, please create a new one. We will get back to you as soon as possible.

    Regards!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.