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 the case when $post is neither a WP_Post or an object instance.
The WP_Post::get_instance method contains wp_cache_get() and wp_cache_set() calls.
So that could explain the behavior you see in your example.
Related Posts:
- Is it possible to completely stop WP_Query retrieving posts?
- Using get_posts vs. WP_Query
- How to clear the cache?
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- Duplicate Queries
- wp_transients | wp_object_cache VS SESSIONS & Cookies?
- Transient caching for wp query
- How do I force WP_query to fetch fresh, non-cached results?
- How to optimize multiple WP_Query() calls on one page?
- Assign Json file to WP_Query
- Should wp_query automatic meta and term cache priming be used in an enviroment with an object caching
- How to cache wp_query with pagination using transients?
- Transient api Caches confused
- Using Transients
- Exec wp query in slow motion to avoid memory error?
- Save large WP_Query to transient === false
- Check the stored / cached WP_Query with transients on post change
- get_posts query caching?
- Pagination in WP query with transient API
- How to save the results of a query as a php file for an autocomplete search bar
- Order by multiple meta key and meta value [closed]
- Query posts only with featured image
- Order by optional meta key?
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- WP_query to get the first two latest posts, then another loop to get the next three
- Why is WP_Query not working with category_name?
- ‘Trying to get property of non-object’ when using WP_Query with ‘fields’ => ‘ids’
- Order by Category and Post in WP custom Query
- Execute a large WP_Query with many “AND” Meta_Queries?
- RSS feed with specific keyword
- Get All IDs Of A Post Type Using WP_Query
- Multiple endpoints in one URL
- How to query using a combination of custom_field values?
- Show one post per author and limit query to 8 posts
- Get term by custom term meta and taxonomy
- Generate a tabbed submenu — from taxonomy term or submenu item — with sample content
- Removing posts from the returned wp_query. Cannot use object of type WP_Query as array
- So strange result of wp_query and have_posts
- How to detect if a function has been fired on any page so scripts/styles can be loaded conditionally
- Why execute the_post()?
- $wpdb insert is not work
- WP_Query Ignoring `post_type` parameter
- How to get the WC_Product Object when using a WP_Query in WooCommerce
- Custom Search Result Page displaying only 1 result.
- How to query a custom post type with a taxonomy filter but display post type archive page?
- How to display 7 most recent days of posts?
- WP_Query Variable inside Array
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Set Transient does nothing
- Get amount of CPT with a certain custom field value
- The pagination on index.php doesn’t work on a first page
- Include tags in WP_Query
- How do I make a meta_query OR relation work? [closed]
- WordPress multisite – fallback on subsites to main site on 404 and dealing with switch_to_blog function
- Count author posts in certain category
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Taxonomy Query Relation field not behaving correctly?
- Woocommerce – Changing the order of the upsell products [closed]
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- Customy WP Query Args are convertet in SQL result
- Include post content of linked posts in search
- Highlight current post title on a page
- Why won’t draft listings appear for non-admins?
- My WP_Query didn’t work after upgrading to WordPress 3.2
- meta queries do ‘either/or’ checks
- search serialised meta_value for date value?
- Get post and its children with WP_Query
- wp_trim_words strips dashicons
- Save (and exclude) posts from loop to use in another loop on page
- Storing an array of objects related to each user
- How to restrict search on a certain page to only return results against custom taxonomies?
- Can’t order the query result as given posts id’s array
- Trouble Making WP_Query paged
- My combination of ‘post_type’ and ‘tax_query’ not working?
- Generate custom output on URL with directory
- prevent get_comments() from returning comments not in comment__in
- Display posts from multiple value in meta separated by comma
- WooCommerce. How To Exclude Subcategory Products From Category Listing Page
- IF ( ! $loop->have_posts() ) condition doesn’t work – WP_Query
- WordPress – Form does not filter the results of taxonomies
- Getting posts by custom field value
- Show one post of each custom taxonomy
- wordpress multiple meta value query is not working
- trying to change from query_post to WP_Query
- Strange results from WP_Query
- Order Posts By Custom Field That is an array of objects
- Rewind posts then show only first post
- Woocommerce orderby rand with tax_query not random
- Ordering Posts by parent category, name ascending
- Use not custom fields in get_posts() meta_query?
- why is this query returning entire blog-posts
- Pagination error WordPress multiple loop
- Multiple wp_query loops showing first 5 posts on all pages instead of older posts[Resolved]
- Pagination With Custom WP Query not functioning
- SQL returned by Wp_Query has wp_posts.ID = -1
- Fatal error with wp-livechat plugin
- Filter posts by category
- Custom WordPress loop, articles not in same order as Array
- Group By query based on Custom Field