• Resolved Daan van den Bergh

    (@daanvandenbergh)


    Hi guys,

    I’ve been using EDD now for almost a year without any issues. But recently I migrated to a LiteSpeed server with QUIC.cloud CDN. The speed is insane, but I’m running into a lot of caching related issues with EDD, mainly causing the edd_add_to_cart action to hang up and my visitors not being able to add products to their cart. A cache flush temporarily resolves the problem, but it will reappear within hours.

    For now, I’ve excluded all product pages from the cache. But ofcourse I’d like to cache them as well. Maybe with ESI enabled? Here are some of the settings I’ve adjusted in an attempt to make it work. Sadly, to no avail: https://imgur.com/a/0xdHZDK

    Can you give me some pointers on how to resolve this behavior?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hey @daanvandenbergh

    Can you check what is the life span of caching on the website ? Like how long are URLs cached for. It could be a simple change in reducing the duration of the cache period that could resolve this for you.

    You could try adding the “edd_add_to_cart” parameter in the last settings for cache from that screenshot, the Drop Query String field and see if that improves things.

    Plugin Support Mihai Joldis

    (@misulicus)

    @daanvandenbergh
    One other idea is to try and add this line define( 'EDD_USE_PHP_SESSIONS', true ); to your website’s wp-config.php file.

    You can read more about that variable and what it does here: https://docs.easydigitaldownloads.com/article/501-edd-use-php-sessions

    Regards

    Thread Starter Daan van den Bergh

    (@daanvandenbergh)

    I did have that before and my current hosting provider advised against it. Enabling PHP Sessions broke my site after migrating to my current host, so I’ll contact them again to look into this.

    Thanks so far! I’ll keep you posted.

    Thread Starter Daan van den Bergh

    (@daanvandenbergh)

    Hi again, Mihai,

    So I enabled PHP Sessions and it appeared to have resolved the issue. But today the issue resurfaced.

    I’ve now added edd_add_to_cart to the Drop Query String option. To see if that resolves anything.

    Can you check what is the life span of caching on the website ?

    Assuming you mean the settings within the TTL tab, they’re all set to their defaults, as you can see in this screenshot: https://imgur.com/a/UQ99Au8

    For which of these options should I lower the value?

    Thanks again.

    Thread Starter Daan van den Bergh

    (@daanvandenbergh)

    Having researched the issue more, I’m pretty sure some things need to be hole punched in Easy Digital Downloads for LiteSpeed’s LSCache plugin to function properly.

    So, I tried to hole punch EDD’s Download Details widget using LSCache’s ESI function, which works on widgets out of the box. However, when I enabled ESI on that widget, it disappears.

    The same goes for the Downloads Cart widget. For some reason, enabling ESI private cache for what widget, makes it not appear at all.

    Any help would be appreciated.

    Plugin Support Mihai Joldis

    (@misulicus)

    Hey @daanvandenbergh

    Thanks for the info and screenshot. Try setting the Default Public Cache TTl to 36000 which is 10 hours and see if that improves things.

    Plugin Support Mihai Joldis

    (@misulicus)

    Because there have not been any recent updates to this topic we’ll be changing the status to resolved. If you have any further questions you can start a new thread or head over to our support page to submit your request if it is related to one of our available extensions

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.