• Resolved mediagin

    (@mediagin)


    Hi. I’ve 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 I’m asking for myself and the other page builders in the repo that use shortcodes for layouts. They might be interested also. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Hai Zheng?

    (@hailite)

    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 shouldn’t 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.

    Thread Starter mediagin

    (@mediagin)

    Thanks. Sorry, I wasn’t clear. The admin isn’t 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, we’re really needing something within the shortcode function itself to enable ESI for that block alone. Thanks for the API link. It’s really close to the solution I’m looking for but refers to URLs.

    • This reply was modified 4 years, 3 months ago by mediagin.
    • This reply was modified 4 years, 3 months ago by mediagin.
    Plugin Support Hai Zheng?

    (@hailite)

    Can you explain a bit more on edit shortcode as a valid block within UI? Isn’t it just showing as a text string in builder?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ESI with Page Builder Type Shortcodes’ is closed to new replies.