WordPress Shortcodes as ESI Blocks not working




Wordpress LScache Plugin: WordPress Shortcodes as ESI Blocks not working

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, Turning WordPress shortcodes into ESI blocks, as described in the attached link, is not working. The shortcodes are not being outputted. ESI is enabled on the plugin settings. The issue occurs when using the do_shortcode() function. I didnt try other methods. https://blog.litespeedtech.com/2018/12/12/wordpress-shortcodes-esi-blocks/ This topic was modified 1 year, 12 months ago by asafm7. Can you specify more details? Did you try the [shortcode] format? What is the error you met? Hi, Thanks for your reply. There are no errors showing. The shortcode is just not echoed. Two examples that will be easy for you to check (also to answer your question about the format I used): echo do_shortcode([esi woocommerce_my_account]) echo do_shortcode([esi ti_wishlists_addtowishlist]) (using: TI WooCommerce Wishlist) Let me know if more info is needed. Thanks Not sure if you can directly use do_shortcode or not. Did you try to put the esi shortcode directly in theme and see result? Also, what does the log say? Not sure if you can directly use do_shortcode or not. I guess this is the issue. Maybe it is worth considering? Im not seeing anything in the logs. Thanks again, Asaf



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference