How to prevent queried posts from being added to cache?
The posts array result in WP_Query is mapped to get_post() (here and here) with: $this->posts = array_map( ‘get_post’, $this->posts ); and that seems to be adding posts to the object cache even though the cache_results argument is set to false in WP_Query. Within the get_post() function (here) we have: $_post = WP_Post::get_instance( $post ); for … Read more