Support » Plugin: Uncanny Toolkit for LearnDash » Not enrolled redirect caching problem

  • I am using the not enrolled redirect so that users who try to access a course without being logged in are redirected.

    However, when they subsequently log in, they continue to be unable to access the course even if they are enrolled.

    We’ve isolated the issue to HTTP redirect caches.

    What’s happening is that our website is caching the login redirects so when users log in and try to access the courses, they are experiencing the cached redirect.

    I can replicate this by:

    1. Open new Private Tab
    2. Visit a course URL: At this point you will be redirected to the login page
    3. Login and you will see the two courses.
    4. Try to access the course you visited in step 2, you will be redirected to the login page.

    If you do NOT first visit the course URL and directly login, then you will NOT experience this (no HTTP redirect cached).

    Is there a way to solve this? At the moment it causes major confusion for many of our clients.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jmscrk


    UPDATE: I found this page speaking about the wp_redirect() function which this plugin uses

    There is a comment recommending to use nocache_headers(); so I added that to the not enrolled redirect plugin just before the redirect calls and it has fixed the issue.

    • This reply was modified 6 months, 3 weeks ago by jmscrk.
    Plugin Author Uncanny Owl


    Thanks for bringing this to our attention. Our developer says he couldn’t replicate it but has an idea of what might be causing it.

    We have uploaded a modified plugin file to You can try downloading that and uploading that version by FTP, replacing the current version, here:

    If that does help, we can include it in the next release of the plugin.

    Thread Starter jmscrk


    I have downloaded that and replaced the server file however it has not fixed the issue. And in fact my first comment above is incorrect too, I still see the issue.

    I have cleared caches in WP Engine and then using an incognito window to access the site so I don’t think it’s an old cache, it still seems to have the issue.

    I can copy to staging and give you a test login if you like, so you can see the issue? If so let me know how I should send private details.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not enrolled redirect caching problem’ is closed to new replies.