• Resolved naomiyaki

    (@naomiyaki)


    I’m working with LitesSpeed support on this [Ticket ID: 484308], but I thought I would post in here too in case it’s something others have experienced. In short, I’m working on a WordPress site that’s running on LiteSpeed server through Hostinger.

    I’ve included an ESI block in a page template following this documentation to the letter: https://docs.litespeedtech.com/lscache/lscwp/api/#generate-esi-block-url

    It generally works as intended for a few minutes – in this case, showing “Hello World” and then a random number with a ttl of 300ms (I’ve also tested nocache). After a few minutes, if I go to the page in a fresh browser, it’ll load slower than usual and dump the entire homepage of the site in where the ESI block is supposed to be.
    Unfortunately I can’t share the page or the code because of client confidentiality, but LiteSpeed support didn’t find anything wrong with the code.

    Things I’ve tried so far:
    Purging the cache (ESI block works again for a few minutes and then breaks)
    Putting Cloudflare caching into dev mode and disabling Cloudflare entirely (no effect)
    Trying to turn ESI on in .htaccess (I’m not sure this is even a thing but it didn’t do anything)
    Changing the location/name of the ESI block (result is always the same)

    My only guess is there’s something conflicting with the caching or server config, or a stray WordPress plugin that I’ll have to track down, but let me know if you’ve seen this before! Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m also seeing errors while using ESI.

    In one of my sites, the ESI shortcode is returning empty string while logged off and using private mode. It work some times, and another doesn’t. It also doesn’t seems to respect the TTL set on the shortcode. Logged in users doesn’t seems to be affected.

    The only fix I found was removing the ESI shortcode at all.

    Plugin Support usabe

    (@usabe)

    Hi @naomiyaki

    Due to inactivity of this topic and many updates on lscwp in the past 5 months, I will mark this topic as “resolved”. If you still have such issues, please feel free to open a new ticket and reference this one.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘LiteSpeed ESI include injects entire page HTML instead of ESI block code’ is closed to new replies.