Exclude Wordpress page from being cached?

Crazy Serb

Well-Known Member
#1
Does Litespeed Cache have any sort of a tag or code that we can add to Wordpress templates (header.php, footer.php, single.php, etc) that will exclude current page from being cache?

WP Fastest Cache has this code:

Code:
wpfc_exclude_current_page();
or
Code:
echo "<!–- [wpfcNOT] -–>";
Does LC have something similar?
 

serpent_driver

Well-Known Member
#2
LScache is a URL based HTTP cache, so it is not possible to exclude included PHP files from being cached, but you can use ESI that can punch holes in a website. Such ESI holes can have no-cache or different cache control. For more information about ESI use LiteSpeed documentation about ESI and Wordpress. For further questions please use LiteSpeed support forum at Wordpress. This forum doesn't support cache plugin for Wordpress any longer.

https://docs.litespeedtech.com/lscache/lscwp/cache/#esi-tab
https://wordpress.org/support/plugin/litespeed-cache/
 
Top