• Resolved hellogerowsky

    (@hellogerowsky)


    Hey there,

    I am trying to make some functions work in ESI.

    I tried it with shortcodes and a custom function – no luck.

    Here’s what I did:

    Shortcode
    I created a new shortcode. When I add it as [shortcode] it works as I want.
    If I add it as [esi shortcode] the shortcode doesn’t execute – I only see the text.

    custom function

    I also tried the function described here:
    https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:esi_sample

    As a function I just wrote echo “ESI working” (for the ESI enabled part of the if-statement) and “ESI not working” (for the else-part).
    I always get “ESI not working” as a result.

    It seems ESI isn’t loading, but it’s enabled in the plugin.
    Any idea why it isn’t working? How can I check if ESI is running on my website?

    Best
    Robert

Viewing 16 replies (of 16 total)
  • I had the same problem.

    For me, I discovered it only worked when the block identifier ‘my_esi_block’ was used. Using a custom string, e.g. ‘prefix_esi_block’, resulted in no output.

    Maybe you can try that.

Viewing 16 replies (of 16 total)
  • The topic ‘ESI not working’ is closed to new replies.