WP_Query has a Caching Parameters you can configure to return the desired data with/without caching.
$swp_args = array(
// Show posts without adding post meta information to the cache.
'update_post_meta_cache' => false,
...
);
In your specific case update_post_meta_cache allows you to turn on/off the caching for post meta.
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?
- How to prevent queried posts from being added to cache?
- Transient caching for wp query
- 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
- How to store and receive variables in WP sessions?
- Nested meta_query with multiple relation keys
- PHP memory friendly alternative to get_posts()
- Reduce or prevent calling of update_meta_cache
- Sorting posts by custom date fields (non standard date format)
- Query Multiple Post types each with own meta query
- How can I reduce the number of database query calls for this custom homepage?
- Order wp_query by calculated field
- new WP_Query() – what is the earliest valid hook?
- Extending WP_Query — Optimise SQL query
- Display only posts with thumbnail using WP_Query
- How to filter sql only for a specific post type
- WP_query and pagination?
- pagenavi with merged wp_query [duplicate]
- How can I display recent posts from a particular category in my header?
- Loop with break in the middle
- What should I use, get_posts or wp_query for less CPU load?
- How should I use posts_where to change meta_value from a string to integer?
- Reduce Database Queries in Code [duplicate]
- How to get post from all Blog Multisite to the Main Site?
- Select posts with any post_type from database?
- Search Custom Post with meta_value NULL
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- Query two post types and order by two different date fields
- meta_query with array as value
- Sort in WP_Query(), not filter? Is it possible?
- Better to make new wp_query or only modify main query each time?
- Determine WP_Query parameters from URL
- Using WP Query to search within ALL keys in meta query
- How to display images in related posts?
- WP Query – Get WooCommerce Products with variation that is in stock
- Search product by brand name in wp_query
- What is the difference in a query when using a fieldname as a meta key vs orderby field?
- Get all post IDs from current WP_Query – not just currently visible
- How to Modify Taxonomy Archive Page with Search Parameter?
- wordpress query in header won’t reset and corrupts other loops
- How add a custom posttype name using ACF field to a query post array
- WP User Query multiple AND OR query problem
- $wpdb->insert inserting two rows in database
- Custom Post order for homepage
- Arrange BBpress topics by created
- Warnings in nav-menu when visiting query pages [closed]
- Page navigation doesn’t show when query category
- Php Trying to get property ‘ID’ of non-object
- More than 1 Year Date Query
- Is it possible to dynamically get queried term AND taxonomy?
- posts_per_page not working
- WP Query for variable taxonomies
- WP_query Date Range results not matching loop
- Pull post meta with post_query?
- Sorting posts DESC based on the number of comments using WP_Query
- Create unique page without header.php for json feed
- How to use WP_Query to display many posts?
- $wpdb select date range of posts
- Meta Query relation “AND” not working
- get_posts() not working with multiple statuses
- Adding an array from a query string to a WP meta_query
- Query multiple meta values
- Why isn’t my multiple orderby working?
- WordPress Loop and $post
- How can I create ‘future’ and ‘past’ parameter for restAPI by filtering the CPT custom date field by greater than / less than current datetime?
- How to filter, restrict and return posts based on custom user meta information
- WP_Query tax query part of slug
- Masonry, WP_Query & paged – first page repeating, second page not loading
- Query posts intersecting tags and categories
- WP_Query ignoring tax_query when is_singular
- WP_Query() order by post content lenght?
- Query posts without meta preload
- How to implement a new row_count method in WordPress?
- REST API: Limit Read Permissions for Default Endpoints
- Excluding pages in WP_query using ACF
- reset to main loop doesnt work
- Applying posts_clauses filter to specific queries only
- Some doubts about how the main query and the custom query works in this custom theme?
- How to do a wp_query with two acf-fields, sorting on one of them
- Using Advanced Custom Field for file upload, how do I load the file url
- Retrieve posts using thumbnail id as meta key
- How to sort post by custom table value
- Pagination on static Posts page
- Shortcode for latest -not expired- posts