문제

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 ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top