How to access “Purge” class in a custom plugin function?
-
Hi,
Can you please tell me how to trigger a purge for all pages when a specific function from a custom plugin is executed?
In other words, how to access the “Purge” class, in order to trigger the
purge_pages
function? (I was expecting something likeLitespeed\Purge::purge_pages()
to work, but it doesn’t, as I get the error of such class not being found).Thank you.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to access “Purge” class in a custom plugin function?’ is closed to new replies.