Caching counter
-
Hello,I am currently running my WordPress on a LiteSpeed server, and everything is working fine. I have LiteSpeed cache, and this is where the problem occurs.
The homepage does get cached, and because of that, the wishlist counter doesn’t work properly. When I add products to my wishlist on the homepage, the counter works. However, when I go to another page and return to the homepage, the counter resets to 0 or displays another incorrect number. (the counter is working fine on all the other pages /cart/ – /checkout/ – /product/ etc…)
This is the piece of code that shows the counter on the page:
<div class="wishlist-box"> <a href="<?php echo WPcleverWoosw::get_url(); ?>"><i class="icon-wishlist"></i></a> <span class="count-wishlist"><?php echo WPcleverWoosw::get_count(); ?></span> </div>
Is there any way to fix this? Thanks in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Caching counter’ is closed to new replies.