Exclude PHP functions




Wordpress LScache Plugin: Exclude PHP functions

Last Updated on: Wed, 15 Apr 2026 00:00:02
I have a page where there is a PHP function to count each time page reload and display the number. It works perfectly. However, when litespeed caching plugin is enabled. The PHP function seems to not working perfectly. Is there a way to cache the whole page and excluding all PHP functions within the pages ? Thank you Hi, ESI is the solution. Youll turn those PHP functions into ESI blocks and configure them not to be cached. Heres our doc on ESI Samples for Developers: https://docs.litespeedtech.com/lscache/lscwp/api/#generate-esi-block-url Regards.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference