• Hi, When the customer adds a product to cart (in woocommerce), the caching stops working. Is there any way to make the cache work even after the product has been added to cart?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Emre Vona

    (@emrevona)

    We need to disable cache after adding product to the cart because if we do not do it, the current customers see the cart of the previous customer.

    @divijc see https://docs.woocommerce.com/document/configuring-caching-plugins/ for the official statement on this.

    @emrevona you might want to get a mention on that page too with your fine plugin, which doesn’t even need configuring ??

    Thread Starter divijc

    (@divijc)

    Hi, Another caching plugin that I have previously used (which has “Rocket” in its name), is able to serve cached pages even after adding to cart. The cart in the header is loaded dynamically while the page is server from cache. Maybe you can look into implementing that functionality in your plugin.

    Your plugin is aleady the best caching plugin and this feature will make it even better ??

    Plugin Author Emre Vona

    (@emrevona)

    @galbaras @divijc , you are right if the cart is loaded via Ajax. Sometimes the cart is loaded via PHP directly. In this case, the current user cannot see its own cart.

    Thread Starter divijc

    (@divijc)

    You can probably include this feature in themes where the cart is loaded via Ajax. Most of the themes in the market today load carts via Ajax.

    Plugin Author Emre Vona

    (@emrevona)

    yes. I will think about it and let you know.

    Thread Starter divijc

    (@divijc)

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Caching after the product is added to cart’ is closed to new replies.