• Resolved pyotr

    (@pyotr)


    Hello – i wrote payment gateway – i get notification when payment is complete via wc-api function and use construction to redirect to the thank you page like this:

    $redirectUrl = $this->get_return_url($order);
    wp_redirect($redirectUrl);
    exit;

    Everything works – url is correct – but redirection doesn’t happen!

    Please help! I can’t understand what is going on…..

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    I assume it works with cache plugin disable ?

    was it redirecting back to same page or something ?

    you can also try add

    if (defined('LSCWP_V')){
    do_action( 'litespeed_control_set_nocache', 'nocache on redirection' );
    }

    on your function , this should disable the cache on that redirection request , see if it helps

Viewing 1 replies (of 1 total)
  • The topic ‘wp_redirect() not working with LiteSpeed Cache on’ is closed to new replies.