Cart/favorites/comparsion counter problem.

#1
Hello! I

I would like to contact you with a problem that the litespeed module does not work properly on a specific prestashop site. The error is the cart counter / favorites counter / comparison counter etc. which is included in the header. The home page is added to the cache, then if I add a product to the cart on the home page, the cart counter changes, then I add a product to the cart on the product page, the cart counter increases again, I go back to the main page and it shows the starting value again. If it was 0, it will be 0 again. If I go back to the product page again, it will be the correct value again. If I clear the cache, it's fine again. I'm not using a classic theme. The theme developer also looked at it but couldn't figure it out. The theme uses elementor, but the native cart widget doesn't work either. Anything in the header doesn't work. cart counter / favorites counter / comparison counter etc. same error with those too.

Data:

- Page: https://mmfish.hu
- Prestashop: 8.0.1
- PHP: 8.0.28 - Theme: Alysum (promokit.eu) with elementor
- Creative Elements: 2.5.9
- LiteSpeed Cache Plugin: 1.4.0
- On the cpanel, only Flush LSCache is available for storage.

What I noticed: In the settings of the litespeed module, I set the “Home Page TTL” section to 86400 seconds to a minimum of 60 seconds, then it clears the cache every 60 seconds. Then the Home Page will be good. There is such a section: Flush Home Page When Order Placed. This is set to: Flush the home page when stock status or quantity is changed for specified products. That doesn't work. If you can help, I will write any information I need right away.

Thanks!
 
#4
Did you find a solution?



I have the same problem with the same theme, with presta 8.1.6.

All header widgets are not refreshed on home page only.

Thank you.
 

serpent_driver

Well-Known Member
#5
Did you find a solution?



I have the same problem with the same theme, with presta 8.1.6.

All header widgets are not refreshed on home page only.

Thank you.
The LiteSpeed Cache plugin was programmed specifically for the PrestaShop standard theme. When using a different theme, functionality cannot be guaranteed. However, the support of the standard theme is already inadequate, so that even with this theme, malfunctions can occur, as PrestaShop can only be used with restrictions with LiteSpeed LScache. These restrictions apply to all PrestaShop versions.
 
Top