Wordpress LScache Plugin: ESI block is caching
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hello, I have a problem with ESI block on my custom theme for wordpress. Im 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? Do you use any additional CDN Cache? Nope, im not using CDN Cache 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.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference