[Plugin: WooCommerce] Woocommerce and cache plugin issue (3 posts)

  1. Dannydekr
    Posted 3 years ago #

    Woocommerce is great, but not so much when it comes to speed. WP Super Cache or Quickcache are perfect, and really speed everything up. The problem I have is a problem with a dynamic Cart URL, which shows the amount that is in the cart. When caching is enabled, the number fluctuates on different pages.

    I use WP Super Cache, enabled everything that the Woocommerce knowledge base said to enable. The cart widget in the sidebar is working fine now, but the dynamic link in my header, just doesn't work correctly.
    This is the code:

    <li><a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" class="cart-header">Winkelwagen <?php echo sprintf(_n('(%d)', '(%d)', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?></a></li>

    All I want is that specific part to stay dynamic. Exclude it somehow from the caching plugin. I just have no idea how to do this, or if it's possible at all.

  2. oculardrift
    Posted 2 years ago #

    I'm having the same problem. Did you manage to solve it?

  3. Niko Vittaniemi
    Posted 2 years ago #

    Checking this fixed the Cart problems for me. Maybe it helps.

    Late init. Display cached files after WordPress has loaded. Most useful in legacy mode.

Topic Closed

This topic has been closed to new replies.

About this Topic