In ProgressCache: add to cart button and closing message

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37920
    LucasLorenson
    Participant

    Hello,

    I’m using the WP-Rocket plugin to cache the site and improve loading performance.

    But I noticed that when the store closes, that is, when the website is outside its scheduled opening hours, the add to cart button remains available instead of being replaced by the store closed message.

    Only when I clear the site’s cache does the message appear.

    The same also happens when the store opens, you need to clear the cache for the add to cart button to appear.

    Is there any way to exclude this theme function from the cache, so that I don’t have to manually clear the entire site’s cache?

    Regards,
    Lucas Lorenson

    #37951
    Alex
    Keymaster

    Hello Lucas Lorenson,

    Try first to activate following option:
    WooCommerce -> Lafka Order Hours -> Enable Shopping Cart Cache Clearing

    If this doesn’t work, then look at the following suggestion from WP-Rocket and try their helper plugin:
    https://docs.wp-rocket.me/article/1436-mini-cart-cached-already-has-product-in-it

    Regards,
    Alex

    #37999
    LucasLorenson
    Participant

    Hello Alex,

    The function you suggested was already activated and did not work in:
    WooCommerce -> Lafka Order Hours -> Enable Shopping Cart Cache Clearing

    I followed the suggestion from the link you sent me, I installed the plugin but it didn’t work either.

    The store closed message continues to be displayed after the store opens. Would there be any other solution?

    Regards,
    Lucas Lorenson

    #38032
    Alex
    Keymaster

    Hello Lucas Lorenson,

    Try to deactivate WP-Rocket for a couple of days to see if it causes it.

    And if yes, try also the following:

    WP Rocket → Advanced Rules and enter the following value in the Never Cache Cookies field:
    woocommerce_items_in_cart

    Regards,
    Alex

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register