ESI // WordPress Function
-
Hi,
on our homepage, we´ve got a Onlineshop Widget in the header, which counts the number of products in the basket. This widget comes out of a function, which is located in seperate .php file and included via the wp functions.php.
<div class="header-cart"> <?php wpsg_cart_link(); ?> <?php wpsg_cart_dropdown(); ?> </div><!-- End .header-cart -->The LS Cache is working perfect on the page, except that we had to exclude all pages to get the widget show the correct number of products. So i´m thinking of the ESI function of LightSpeed Cache, to exclude only the widget (or even more the corresponding code) …
I´ve already enabled ESI it and try to integrate <esi:inline>, but nothing worked properly, or the widget isn´t shown.
`<esi:inline name=”/basket” >
<div class=”header-cart”>
</esi:inline>
<?php wpsg_cart_link(); ?>Is that the correct usage or i´m on the wrong way regarding the useage of ESI? I´m not so familar with the technical integration …
Would be very happy, if someone had a suggestion or idea …
Many thanks in advance
<?php wpsg_cart_dropdown(); ?>
</div><!– End .header-cart –>The page I need help with: [log in to see the link]
The topic ‘ESI // WordPress Function’ is closed to new replies.