Hello,
I am using prestashop 1.7.4 and I have a problem with LiteSpeed cache. On desktop The number of items in the basket is correctly updated (exception with an ESI block).
On the other hand on mobile the number of items in the basket is incorrect on some pages because of the cache.
With my theme (Panda for Prestashop https://www.sunnytoo.com)
The mobile cart goes through the stsidebar module. So I put the same exceptions for this modules as for the basket module prorpe to this theme. But nothing to do it does not work.
In my rightsidebar tpl file i have:
{include 'module: stsidebar / views / templates / hook / rightbar-item.tpl' sidebar_item = $ sidebar_item}
I test with:
{hook h = "litespeedEsiBegin" m = "stsidebar" field = "widget_block" tpl = "module: stsidebar / views / templates / hook / rightbar-item.tpl"}
{widget_block name = "stsidebar"}
{include 'module: stsidebar / views / templates / hook / rightbar-item.tpl' sidebar_item = $ sidebar_item}
{/ widget_block}
{hook h = "litespeedEsiEnd"}
But do not work ...
Can you help me please?
Regards
I am using prestashop 1.7.4 and I have a problem with LiteSpeed cache. On desktop The number of items in the basket is correctly updated (exception with an ESI block).
On the other hand on mobile the number of items in the basket is incorrect on some pages because of the cache.
With my theme (Panda for Prestashop https://www.sunnytoo.com)
The mobile cart goes through the stsidebar module. So I put the same exceptions for this modules as for the basket module prorpe to this theme. But nothing to do it does not work.
In my rightsidebar tpl file i have:
{include 'module: stsidebar / views / templates / hook / rightbar-item.tpl' sidebar_item = $ sidebar_item}
I test with:
{hook h = "litespeedEsiBegin" m = "stsidebar" field = "widget_block" tpl = "module: stsidebar / views / templates / hook / rightbar-item.tpl"}
{widget_block name = "stsidebar"}
{include 'module: stsidebar / views / templates / hook / rightbar-item.tpl' sidebar_item = $ sidebar_item}
{/ widget_block}
{hook h = "litespeedEsiEnd"}
But do not work ...
Can you help me please?
Regards