• 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)
  • joy0114

    (@joy0114)

    Hi,

    I’ve also been having trouble lately getting SmartWhislist to work with Litespeed.

    The solution seems to be to use ESI, with this statement from nonce: woosw_* private
    This used to work perfectly.

    But lately, this doesn’t work anymore, and it creates js errors.
    For example, the pop-up is no longer displayed.

    I’ve opened a post on the Lscwp forum about this, because ESI also causes other errors that have nothing to do with SmartWhislist.

    Best regards

Viewing 1 replies (of 1 total)
  • The topic ‘Caching counter’ is closed to new replies.