WordPress Caching: Clear An Individual WordPress Post Cache

I’ve become a bit obsessed with caching lately. Speed is an addiction I suppose. So I found another new trick today. If your writing a plugin or theme and have some front in functionality adding and updating posts, sometimes you want to make sure a cached object is cleared before the page is refreshed. But you don’t want to dump the whole object cache, especially if there are thousands of posts. So to just dump one post you can simply do this:

wp_cache_delete($post_id,'posts');