Clear ESI Block Cache For Certain Blocks
-
I have created an ESI block following the Usage Example on this page: https://docs.litespeedtech.com/lscache/lscwp/api/
And I am able to purge the blocks cache using this code:
do_action(‘litespeed_purge_esi’, ‘random_esi_block’);However I will be re-using this block for multiple items being listed on the page with slightly different parameters, how can I refresh just a single instance of the block based on an ID or parameters? So basically if an action happened on the 3rd block we would just want to purge the 3rd block’s cache while leaving all others untouched.
Thanks.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Clear ESI Block Cache For Certain Blocks’ is closed to new replies.