Wordpress LScache Plugin: Purge cache for specific page via PHP
Last Updated on: Wed, 15 Apr 2026 00:00:02 We have a large amount of dynamic data on our site. Some of this is added and amended via log in pages outside of wordpress folder. When an item is updated via a form, the form submits to itself and updates database. At the same time Id like to purge the cache for the specifc page that displays this info on wordpress site. Ive seen similar questions with answers linking to this page https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:developer_guide:response_headers and am assuming that I should purge by URL but dont know how to implement it in my php code?? If your code is in WordPress, please call LiteSpeed_Cache_API::purge($tag) Ref: https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:api If you have specific tags served when visiting that page, you can also purge that instead of URL. Hi, Trigger the following code with URL you desired to purge
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference