Wp Super Cache - Function to reset cache of a specific page
-
04-03-2021 - |
Question
I looked for a solutin like more than hour, but not chance. There is a function to reset cache of a specific page manually? I'm using wp super cache.
I'm updating some posts meta values using API, and I want when I update something, I reset the cache of this page only. There is a function for that?
Thanks
Solution
The function you're looking for is wpsc_delete_post_cache()
$post_id = 123;
wpsc_delete_post_cache($post_id);
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange