• Hello,

    I use Learndash and autoptimize
    After purchasing training on my site, customers do not have access to the training right away.
    They have to go to private browsing for it to work.

    Everyone writes to me every time. I don’t have a server cache, I only use autoptimize.

    Have you ever had this problem ? It is important

    Thank you for your comeback

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Never seen this before no Matthieu. Have you been able to confirm this is due to Autoptimize by disabling it (even if only briefly)?

    Thread Starter matthieuj

    (@matthieuj)

    Everything works if I delete the cache and the autoptimize settings but I work with learndash to identify the problem, I will tell you

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, do let me know if I can help, pretty sure the can be fixed if it turns out to be due to Autoptimize’s configuration! ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Any news Matthieu?

    Thread Starter matthieuj

    (@matthieuj)

    For Learndash it comes from cache plugin and I have to exclude learndash scripts apparently

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, and does excluding the learndash JS indeed makes it work?

    Thread Starter matthieuj

    (@matthieuj)

    I just set up, is that right to exclude all js files from a folder : wp-content/plugins/sfwd-lms/assets/js/(.*).js ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    almost, make is just wp-content/plugins/sfwd-lms/ and it should be OK ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so does the exclusion make it work Matthieu?

    Thread Starter matthieuj

    (@matthieuj)

    I have the same problem and I think it’s worse when I touch autoptimize (change options), clients can no longer connect

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, flying blind here as I only have the info you’re providing here so can’t say with certainty what is going on, but maybe try below code snippet to disable JS optimization for everything in /formations/*

    add_filter( 'autoptimize_filter_noptimize', 'noptimize_formations', 10, 1 );
    function noptimize_formations( $flag_in ) {
        if ( strpos( $_SERVER['REQUEST_URI'], 'formations/') !== false ) {
    	return true;
        } else {
    	return $flag_in;
        }
    }
    Thread Starter matthieuj

    (@matthieuj)

    Thank you, I have integrated this code, I will wait to see the next orders ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I had a quick look to double-check and can confirm AO now is not active on /formations/* any more Matthieu. If the problem would persist, this would be an indication that the issue is elsewhere after all ??

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Learndash access course after buy’ is closed to new replies.