Wp Super Cache – Function to reset cache of a specific page

Zeta asked
codex plugin-wp-supercache
via

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


Answer
via

The function you’re looking for is wpsc_delete_post_cache()

$post_id = 123;
wpsc_delete_post_cache($post_id);
Share This
Posted in: