ESI with Page Builder Type Shortcodes




Wordpress LScache Plugin: ESI with Page Builder Type Shortcodes

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi. Ive read the docs regarding adding esi and ttl for shortcodes. However, I have a custom-built page builder that uses shortcodes to create page layouts. Some of these blocks need to be updated more often than the page does. Adding esi to the front of the shortcodes breaks the admin editing area. So, how can I add ESI capability inside the shortcode code? I am the plugin author, so Im asking for myself and the other page builders in the repo that use shortcodes for layouts. They might be interested also. Thanks. Hi @mediagin, Welcome to the community. If you want to directly generate an ESI block, you can use the API from https://docs.litespeedtech.com/lscache/lscwp/api/#esi Directly adding ESI to shortcode shouldnt break the admin area. If so, are you able to provide the steps that can be reproduced? We will take it as high priority and fix. Thanks. Sorry, I wasnt clear. The admin isnt broken. The page builder UI becomes broken because it is looking for specific shortcodes that it uses for creating blocks ie [srb-row][srb-column][srb-text] , etc. When we change [srb-text] to [esi srb-text], the builder fails to see this as a valid block that can be edited within the UI. So, were really needing something within the shortcode function itself to enable ESI for that block alone. Thanks for the API link. Its really close to the solution Im looking for but refers to URLs. Can you explain a bit more on edit shortcode as a valid block within UI? Isnt it just showing as a text string in builder?



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



Reference