• Resolved mnich209

    (@mnich209)


    Hello,

    I have a problem with ESI block on my custom theme for wordpress. I’m using litespeed_esi_url (for minicart, toast messages). When cache is enabled and also ESI after clear cache blocks are uncached. After a few sessions / visits ESI block is cached (i see in html comment). In filter i have do_action( 'litespeed_control_set_nocache' );. i tried also do_action( 'litespeed_control_set_ttl', 1 );).

    What i weird – on dev server (the same config, i made import/export by plugin tool) i cant reproduce this problem.

    Do you have any ideas how to check / repair this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do you use any additional CDN Cache?

    Thread Starter mnich209

    (@mnich209)

    Nope, im not using CDN Cache

    Thread Starter mnich209

    (@mnich209)

    I Saw that when i make a OPTION request to some url ESI is catching all blocks.

    How it is possible?

    Plugin support has to verify it, but for performance reason it may be that ESI blocks are also cached, but with short TTL. For testing create blank PHP file and copy this code and request it. If done, cache for ESI blocks should be purged.

    <?php
    header('X-LiteSpeed-Cache-Control: no-cache');
    header("X-LiteSpeed-Purge: private *");
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please enable the debug log , see what logs says when it generates that ESI block.

    best regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘ESI block is caching’ is closed to new replies.