Knowing that we can clear the entire cache by sending:
header('X-LiteSpeed-Purge: *');
Is it possible to purge for example, all product pages using something like below? I tried but it doesn't work and https://docs.litespeedtech.com/lscache/manualpurge/ is very limited with regard to header purging.
header('X-LiteSpeed-Purge: /products/*');
Finally, what about using the header to purge the current url only?
header('X-LiteSpeed-Purge: https://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'');
...doesn't work either
header('X-LiteSpeed-Purge: *');
Is it possible to purge for example, all product pages using something like below? I tried but it doesn't work and https://docs.litespeedtech.com/lscache/manualpurge/ is very limited with regard to header purging.
header('X-LiteSpeed-Purge: /products/*');
Finally, what about using the header to purge the current url only?
header('X-LiteSpeed-Purge: https://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'');
...doesn't work either
Last edited: