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

有帮助吗?

解决方案

The function you're looking for is wpsc_delete_post_cache()

$post_id = 123;
wpsc_delete_post_cache($post_id);
许可以下: CC-BY-SA归因
scroll top