• Resolved roccinio

    (@roccinio)


    Hello,

    I am facing an issue that forced me for the time being and until i figure out a solution away from litespeed and quic and it pains me.

    I am using openlite + litespeed + quic with one domain and many subdomains.

    I use woo that serves the exact same page to logged in and logged out users. With edge includes and the excluding of the “items in cart” cookie it works like a charm.
    I can serve to both logged out and logged in customers that have nothing in their cart (99.9% for my store when they revisit) in under 160ms(!).

    Now the second a customer visits the cart/checkout/account page you set the _lscache_vary cookie and correctly so. Problem is that this persistent little bugger stays there for 2 days and for two days the logged in customer gets served the page from 160ms to 4seconds…

    Its a disaster for all of the customers that revisit and obviously for us as a business because no one wants a 5 second waiting period when yesterday it loaded for them instantly.

    My question is. How can i set this little annoying fella to something like 30 minutes so i can move back to the safety of Quic and my customers get served the speed they deserve?

    Can we set somewhere to get ignored in the main page for example?

    Any other workarounds?

    Thank you in advance

    • This topic was modified 9 months, 2 weeks ago by roccinio.
    • This topic was modified 9 months, 2 weeks ago by roccinio.
    • This topic was modified 9 months, 2 weeks ago by roccinio.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support qtwrk

    (@qtwrk)

    you may need to manually edit the source code to set expiration time

    https://github.com/litespeedtech/lscache_wp/blob/7b3686423dfa0de8cf63bfbdec41d2e0dc4f6861/src/vary.cls.php#L413

    I will ask our dev to add a filter to modify the cookie life time

    Thread Starter roccinio

    (@roccinio)

    Thank you qtwrk.

    I truly believe that something like that would be beneficial for all of us since it would give us the power to setup everything as we please without breaking functionality.

    Regards

    P.S On second thought adding the ability to exclude pages from reading that cookie along with the expiration date would be perfection.
    Why when navigating back to the main page if he has nothing in his cart (with the items in cart cookie exclusion) to load slow? Yes the 30 minute for example expiration of the lsvary cookie is perfect for next day customers but not when navigating within the site.

    • This reply was modified 9 months, 1 week ago by roccinio.
    Plugin Support qtwrk

    (@qtwrk)

    thanks, duly noted 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set expiration length for _lscache_vary cookie’ is closed to new replies.