Wordpress LScache Plugin: ESI // WordPress Function
Last Updated on: Wed, 15 Apr 2026 00:00:02 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. 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 , but nothing worked properly, or the widget isn?t shown. ` 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 The page I need help with: https://tachundnacht.de/ If that widget can use a shortcode to load the content, things will be easier. You can just change that [xxx] to [esi xxx], then the magic comes. If not, you need to use our api to make it work. Ref: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:api In the bottom there is a ESI Sample Code you can try the same way to code. Directly using
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference