Cache Query Results

Home » Snippets » Cache Query Results
0

Created with:

WP_Query Generator

Visibility: 

public

Creator: WPTurbo Team

Customize with WPTurbo AI
X

Add Snippet To Project

New Project
Add To Existing Project
				$args = [
	'post_type' => [ 'post' ],
	'post_status' => [ 'published' ],
	'cache_results' => true,
	'update_post_meta_cache' => true,
	'update_post_term_cache' => true,
];
// The Query
$my_query = new WP_Query( $args );

			

Register an account to save your snippets or go Pro to get more features.