Off canvas login/register & cache issue

This topic has 26 replies, 3 voices, and was last updated 2 years, 3 months ago ago by Olga Barlow

  • Avatar: Apolloneos
    Apolloneos
    Participant
    January 15, 2022 at 19:14

    Hello,

    now in the most pages it works, but they remain uncached.
    I see this headers: x-litespeed-cache-control: no-cache

    In some pages with x-litespeed-cache: hit
    it doesn’t work.

    What have you changed?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 18, 2022 at 15:43

    Hello,

    We have improved the code. Check again.

    Regards

    Avatar: Apolloneos
    Apolloneos
    Participant
    January 18, 2022 at 17:02

    Hello Olga,

    with the last change it seems to work. But, it purges all cache on every login.

    I’m thinking if it could help to treat the following as ESI:

    woocommerce-login-nonce
    woocommerce-register-nonce

    Something like this:
    do_action( ‘litespeed_nonce’, ‘woocommerce-login-nonce’ );
    or
    woocommerce-login-nonce no-cache

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 18, 2022 at 17:22

    Hello,

    Changed. Check again.

    Regards

    Avatar: Apolloneos
    Apolloneos
    Participant
    January 25, 2022 at 11:03

    Hello,

    with the last changes it seems to work ok.

    The problem now comes only when we add something to cart and after a while we remove it from cart. When adding products to cart, the Litespeed private cache is enabled. If we empty the cart, the public cache comes back. But, I think something is getting confused. I will inform Litespeed’s support about this too.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    January 25, 2022 at 13:00

    Hello,

    Ok. Glad to hear that the login option works ok for you now.

    Regards

  • 1 2
    Viewing 26 results - 21 through 26 (of 26 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.