Cart Item Count Cache Support
-
Is there an option or a way to have the wish list, compare, and cart item count for the header to display the current number for a user while retaining page cache? Right now if the page is cached, the numbers are based on the user who visited the page and had it cached. I know the recently view element can support if the page is cached so I’m wondering if the same can be done for these.
Hello,
Actually, it has a fragments refresh functionality so it should always display the number of items of the current user even with cache. If it doesn’t work for you, please disable all plugins that are not related to our theme and send us your website access so we can check.
Kind Regards
I did some digging and forgot I had wp_dequeue_script('wc-cart-fragments'); in my functions. Seems to be working as intended now.
Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.
The topic ‘Cart Item Count Cache Support’ is closed to new replies.