How to purge ESI blocks on a page without purging whole site cache?
-
I have a ESI block set public, ttl=900. Inspecting it’s page shows LS debug messages as follows following the ESI block.
<!-- Block cached by LiteSpeed Cache 5.5.1 on 2023-08-07 15:39:25 --> <!-- X-LiteSpeed-Cache-Control: private,no-vary,max-age=3600 --> <!-- X-LiteSpeed-Tag: 3a6_tag_priv,public:3a6_HTTP.200,public:3a6_ESI,public:3a6_ESI.widget,public:3a6_ -->
This page in the “Force Cache URIs” list.
How have I been able to purge the ESI block?
- LS WP Admin panel
- At CLI: ‘wp litespeed-purge’
- let the TTL expire.
These more convenient methods where I’m not purging the whole website don’t work
- LS WP Admin panel -> Purge Page
- wp litespeed-purge post_id [post_id]
- wp litespeed-purge url [url]
- wp litespeed-purge tag [tag] -> expects a numeric tag
Am hopeful to get some guidance here to be able to selectively purge the ESI block and/or containing page. Thank you.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘How to purge ESI blocks on a page without purging whole site cache?’ is closed to new replies.